This is a Tree-Sitter grammar for Cooklang.
- Syntax highlighting
- Properly handle
unreserved_symbol
s.
- It appears that the Cooklang BNF doesn't actually allow for punctuation (eg.
-
) inword
s (like ingredient names), but the compiler allows for it. I explicitly put it in this grammar since it seems useful. This is hacky. - Newline and whitespace characters are handled slightly differently due to the way Tree-Sitter views them.