Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code navigation for new language: <LANGUAGE> #14

Open
6 of 7 tasks
314eter opened this issue Jan 15, 2025 · 0 comments
Open
6 of 7 tasks

Code navigation for new language: <LANGUAGE> #14

314eter opened this issue Jan 15, 2025 · 0 comments

Comments

@314eter
Copy link
Contributor

314eter commented Jan 15, 2025

Language

OCaml (https://ocaml.org/)

Linguist entry

Linguist is currently using a TextMate grammar for OCaml that hasn't been updated in 10 years and doesn't support many recent language features.

Tree-sitter parser

Parser URL: https://github.com/tree-sitter/tree-sitter-ocaml

The tree-sitter-ocaml grammar has been one of the grammars in the upstream tree-sitter organization for 7 years. It's well-maintained (often getting support for new language features before they're released) and has no known bugs or unsupported syntax.

Other remarks

The containers relevant for fully-qualified names are modules and classes. For modules the separator is Module.item and for classes class#method, but classes are almost never used.

Linguist currently considers .ml, .mli, .eliom, .eliomi, .ml4, .mll and .mly as OCaml. In tree-sitter-ocaml there is a different grammar for .ml (source.ocaml) and .mli (source.ocaml.interface) files.

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

No branches or pull requests

1 participant