Writing a grammar for the parser generator Tree-sitter will improve text editor support for modern editors such as Helix. The parser converts Wikitext into an abstract syntax tree that can be used for syntax highlighting.
I will give this a try during the Hackathon 2022. Tree-sitter provides docs for getting started.
Repository: https://github.com/Ordoviz/tree-sitter-mediawiki
Prior work:
- Alternative parsers
- Markup spec – abandoned attempt at writing a formal grammar for MediaWiki markup