tree-sitter-xresources

November 1, 2024 ยท View on GitHub

CI discord matrix

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 section
  • X(7), RESOURCES section
  • xrdb(1)
  • The C Preprocessor (GNU implementation)
  • tree-sitter-c grammar

Neovim

You can install this parser using nvim-treesitter, run TSInstall xresources.

Contents

  1. 1References
  2. 1.1Neovim