slackhq / tree-sitter-hack

Hack grammar for tree-sitter
MIT License
33 stars 16 forks source link

[BUG] Module membership declarations are not supported in the grammar #70

Open mmanela opened 5 months ago

mmanela commented 5 months ago

Describe the bug

Module membership declarations are not support in the grammar

Requirements

To Reproduce

Grammar does not support module membership declarations which prevents a highlighting query from targeting them.

module foo;

Which currently parses as the following (notice the ERROR)

(expression_statement  
    (qualified_identifier  
      (identifier)) 
    (ERROR 
      (identifier)))

Expected behavior

I expect the module membership declarations to parse properly.