GitHub is now using tree-sitter-ocaml for code navigation and code search.
- Code highlighting should be more accurate (compared to the old TextMate grammar) and supports all features up to OCaml 5.4.
- There is a symbols side panel for each file.
- You can click on symbols to find definitions and references.
- You can search for definitions.
- There is limited support for nested structures.
They enabled it a few months ago already, but I forgot to post it here.
The code navigation is not always 100% accurate, but good enough to be helpful. If you encounter any issues with incorrectly highlighted code, this could be a tree-sitter-ocaml issue.