Tree-sitter
A parser generator and parsing library built for editors. Written by Max Brunsfeld at GitHub and published in 2018. It builds a real syntax tree of the code instead of guessing with regular expressions.
Two properties make it usable in an editor where other parsers won't do. It is incremental: when you type a character only the affected part of the tree is rebuilt, which keeps it inside a frame budget even in large files. And it is error tolerant: half-written code is the normal state in an editor, so the parser produces a useful tree anyway. Grammars are written in a JavaScript DSL and compiled to C. It's used for syntax highlighting that understands what a name actually is, structural selection, code navigation and indentation — in GitHub's code view, Neovim, Helix, Zed and Emacs 29.