diff options
| author | Wu Zhenyu <wuzhenyu@ustc.edu> | 2024-02-14 10:15:10 +0800 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2024-02-15 09:39:10 +0100 |
| commit | e4a1cc6e8eaecfde4daa8d6295f5bc3e3c5cdbc4 (patch) | |
| tree | bc65db1a116d3b51d3239506a8dfd492156e2079 /queries/muttrc | |
| parent | fix(latex): update bibstyle queries (#6102) (diff) | |
| download | nvim-treesitter-e4a1cc6e8eaecfde4daa8d6295f5bc3e3c5cdbc4.tar nvim-treesitter-e4a1cc6e8eaecfde4daa8d6295f5bc3e3c5cdbc4.tar.gz nvim-treesitter-e4a1cc6e8eaecfde4daa8d6295f5bc3e3c5cdbc4.tar.bz2 nvim-treesitter-e4a1cc6e8eaecfde4daa8d6295f5bc3e3c5cdbc4.tar.lz nvim-treesitter-e4a1cc6e8eaecfde4daa8d6295f5bc3e3c5cdbc4.tar.xz nvim-treesitter-e4a1cc6e8eaecfde4daa8d6295f5bc3e3c5cdbc4.tar.zst nvim-treesitter-e4a1cc6e8eaecfde4daa8d6295f5bc3e3c5cdbc4.zip | |
feat: add the muttrc parser
Diffstat (limited to 'queries/muttrc')
| -rw-r--r-- | queries/muttrc/highlights.scm | 53 | ||||
| -rw-r--r-- | queries/muttrc/injections.scm | 8 |
2 files changed, 61 insertions, 0 deletions
diff --git a/queries/muttrc/highlights.scm b/queries/muttrc/highlights.scm new file mode 100644 index 000000000..187c6ee54 --- /dev/null +++ b/queries/muttrc/highlights.scm @@ -0,0 +1,53 @@ +; Comments +(comment) @comment @spell + +; General +(int) @number + +(string) @string + +[ + (map) + (object) + (composeobject) + (color) + (attribute) +] @string.special + +(quadoption) @boolean + +(path) @string.special.path + +(regex) @string.regexp + +[ + (option) + (command_line_option) +] @variable.builtin + +(command) @keyword + +(source_directive + (command) @keyword.import) + +(uri) @string.special.url + +(key_name) @constant.builtin + +(escape) @string.escape + +(function) @function.call + +; Literals +[ + "<" + ">" +] @punctuation.bracket + +"," @punctuation.delimiter + +[ + "&" + "?" + "*" +] @character.special diff --git a/queries/muttrc/injections.scm b/queries/muttrc/injections.scm new file mode 100644 index 000000000..9c16ad15a --- /dev/null +++ b/queries/muttrc/injections.scm @@ -0,0 +1,8 @@ +((regex) @injection.content + (#set! injection.language "regex")) + +((shell) @injection.content + (#set! injection.language "bash")) + +((comment) @injection.content + (#set! injection.language "comment")) |
