tree-sitter-c icon indicating copy to clipboard operation
tree-sitter-c copied to clipboard

My takeaways from working with this grammar

Open digitcrusher opened this issue 5 months ago • 0 comments

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:

  1. An example of a color theme which colors these differently is Monokai Pro in Visual Studio Code.
  2. This brings parenthesized declarators in line with other declarators (e.g. pointer_declarator).
  3. 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.
  4. Self-explanatory.

digitcrusher avatar Jul 25 '25 09:07 digitcrusher