tree-sitter-c
tree-sitter-c copied to clipboard
My takeaways from working with this grammar
This is a pull request of a few fixes I had to apply while adapting this grammar for my text editor. Here's some reasoning behind each commit, from oldest to newest:
- An example of a color theme which colors these differently is Monokai Pro in Visual Studio Code.
- This brings parenthesized declarators in line with other declarators (e.g.
pointer_declarator). - Free stuff. This is yet another case of tree-sitter/tree-sitter#880. It's ugly, but you have to remember that ugly but working code is better than no code at all, if you're writing software for real-world use.
- Self-explanatory.