Closed arlencox closed 2 years ago
Hi Arlen,
sorry for the delay. I've added the modified grammar.js file in 5508187. It's a single line change to add support for '$' in identifiers.
You could do something similar to: https://github.com/mozilla/rust-code-analysis/blob/master/tree-sitter-mozcpp/grammar.js#L1 and then add your own stuff.
Thanks @calixteman. That looks like a much nicer approach! :)
In implementation details it says that
However,
third_party/grammars/{c,cpp}/*
only contains the tree-sitter-generated C and C++ code. Can the modified tree-sitter js grammar file be added to the repository?