amplify-education / python-hcl2

MIT License
256 stars 56 forks source link

Parsing large numbers with 1e12 notation fail #144

Open jverhoeks opened 1 year ago

jverhoeks commented 1 year ago

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.