Emit an emacs major mode

With coloring! Next up: formatting but that might be hard.
This commit is contained in:
John Doty 2024-09-06 11:51:09 -07:00
parent 4941cd049c
commit d7dfd556ec
2 changed files with 120 additions and 2 deletions

View file

@ -439,4 +439,4 @@ if __name__ == "__main__":
ts_path = Path(__file__).parent / "tree-sitter-fine"
emit_tree_sitter_grammar(grammar, ts_path)
emit_tree_sitter_queries(grammar, ts_path)
emit_emacs_major_mode(grammar, ts_path)
emit_emacs_major_mode(grammar, ts_path / "fine.el")