python-hcl2 icon indicating copy to clipboard operation
python-hcl2 copied to clipboard

Parsing large numbers with 1e12 notation fail

Open jverhoeks opened this issue 1 year ago • 0 comments

Example code:

athena_workgroups = {
  workgroup = {
    selected_engine_version        = "Athena engine version 3"
    bytes_scanned_cutoff_per_query = 1e12 # 1 TB = $5 as an upper limit
  }
}

Gives the following error:

lark.exceptions.UnexpectedToken: Unexpected token Token('__ANON_3', 'e12') at line 4, column 39.

jverhoeks avatar Oct 14 '23 19:10 jverhoeks