# \[ANN\] Code navigation and search on Github

**URL:** <https://discuss.ocaml.org/t/ann-code-navigation-and-search-on-github/17999>\
**Category:** Ecosystem\
**Tags:** github, treesitter, announce\
**Created:** [April 18, 2026, 12:15pm UTC](https://discuss.ocaml.org/t/ann-code-navigation-and-search-on-github/17999 "2026-04-18T12:15:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![314eter](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/314eter/32/25_2.png) [@314eter](https://discuss.ocaml.org/u/314eter)\
**Post date:** [April 18, 2026, 12:15pm UTC](https://discuss.ocaml.org/t/ann-code-navigation-and-search-on-github/17999/1 "2026-04-18T12:15:26Z")

</div>

GitHub is now using [tree-sitter-ocaml](https://github.com/tree-sitter/tree-sitter-ocaml) for [code navigation](https://docs.github.com/en/repositories/working-with-files/using-files/navigating-code-on-github) and [code search](https://docs.github.com/en/search-github/github-code-search/understanding-github-code-search-syntax#symbol-qualifier).

- 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](https://github.com/search?q=repo%3Aocaml%2Focaml+def%3Afind&type=code).
- There is limited support for [nested structures](https://github.com/search?q=repo%3Aocaml%2Focaml+Make.t&type=code).

They enabled it [a few months ago](https://github.com/github/code-navigation/issues/14) 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.

---

<div class="post-metadata">

**Author:** ![reynir](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/reynir/32/6496_2.png) [@reynir](https://discuss.ocaml.org/u/reynir)\
**Post date:** [April 20, 2026, 9:23am UTC](https://discuss.ocaml.org/t/ann-code-navigation-and-search-on-github/17999/2 "2026-04-20T09:23:08Z")

</div>

Nice! I did notice something had improved. Thank you for that.
