elm-tooling / tree-sitter-elm

Tree sitter implementation for elm
https://elm-tooling.github.io/tree-sitter-elm/
MIT License
75 stars 14 forks source link

Floats with e and dot not parsed #12

Closed buinauskas closed 5 years ago

buinauskas commented 5 years ago

Adding a valid Elm float with a dot to Numbers test case, this will produce fail, even though it should pass. Example value: 1.0e-12

=====================================
Numbers
=====================================

number =
    1

minusNumber =
    -1

float =
    1.5

eNumber =
    1e12

eNumberWithDot =
    1.0e-12

---

(file
  (value_declaration
        (function_declaration_left (lower_case_identifier))
        (eq)
        (number_constant_expr (number_literal))
  )

  (value_declaration
        (function_declaration_left (lower_case_identifier))
        (eq)
        (number_constant_expr (number_literal))
  )

  (value_declaration
        (function_declaration_left (lower_case_identifier))
        (eq)
        (number_constant_expr (number_literal))
  )

  (value_declaration
        (function_declaration_left (lower_case_identifier))
        (eq)
        (number_constant_expr (number_literal))
  )

  (value_declaration
        (function_declaration_left (lower_case_identifier))
        (eq)
        (number_constant_expr (number_literal))
  )
)
buinauskas commented 5 years ago

Closing this. Has been merged in #13