tree-sitter-xresources
November 1, 2024 ยท View on GitHub
A tree-sitter parser for .Xresources or .Xdefaults files.
This grammar also parses some C preprocessor macros/directives since
xrdb(1) passes the file through a C preprocessor before
loading the resources.
References
XrmGetDatabase(3), FILE SYNTAX sectionX(7), RESOURCES sectionxrdb(1)- The C Preprocessor (GNU implementation)
- tree-sitter-c grammar
Neovim
You can install this parser using nvim-treesitter,
run TSInstall xresources.