Skip to content

Conversation

@tmcgilchrist
Copy link

This PR implements language injection for OCaml code embedded in
Menhir files, replacing the previous regex-based approach with
tree-sitter language injection.

I've added a large corpus of tests so the grammar is tested against:

  • Custom corpus tests in test/corpus/
  • Example Menhir files in test/examples/
  • Official Menhir test suite (800+ real-world .mly files)
    Plus I've been using this in Emacs for the last week.

It's using tree-sitter ABI 15, which isn't supported by Emacs 29, so I might need to re-generate things. Feedback on the code or approach would be good.

55dbafa Is the main implementation.
718616b Updates the CI Actions versions.

This PR implements language injection for OCaml code embedded in
Menhir files, replacing the previous regex-based approach with proper
tree-sitter language injection.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant