TravonteD / tree-sitter-fennel

Treesitter grammar for the Fennel programming language
MIT License
42 stars 9 forks source link

?. macro produces an error #36

Closed katawful closed 2 years ago

katawful commented 2 years ago

The ?. macro does not produce a valid node. The parser only seems to recognize ? as a symbol, . ends up as an error.

(?. table :value)
(. table :value)
(program [0, 0] - [2, 0]
  (list [0, 0] - [0, 17]
    (symbol [0, 1] - [0, 2])
    (ERROR [0, 2] - [0, 3])
    (symbol [0, 4] - [0, 9])
    (string [0, 10] - [0, 16]))
  (list [1, 0] - [1, 16]
    (symbol [1, 1] - [1, 2])
    (symbol [1, 3] - [1, 8])
    (string [1, 9] - [1, 15])))