tree-sitter / tree-sitter-julia

Julia grammar for Tree-sitter
MIT License
93 stars 31 forks source link

Error when declaring global const #129

Closed mjrodgers closed 4 months ago

mjrodgers commented 6 months ago

I am finding that the parser throws an ERROR when I try to parse a global const declaration.

global const A = false

gives:

ERROR (0, 0) - (0, 18)
  const_statement (0, 7) - (0, 18)
    assignment (0, 13) - (0, 18)
      identifier (0, 13) - (0, 14)
      operator (0, 15) - (0, 16)
      boolean_literal (0, 17) - (0, 22)

(I get the same error using const global as well)