diff options
| author | wzy <32936898+Freed-Wu@users.noreply.github.com> | 2024-01-22 01:42:30 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-21 19:42:30 +0200 |
| commit | 94bd4bcc5bbce8334303727627b628ece72e798d (patch) | |
| tree | 577dac8acd885c171e16448d6dcca464d970bc86 /queries/zathurarc | |
| parent | fix(wgsl_bevy): Correct formatter mistake (diff) | |
| download | nvim-treesitter-94bd4bcc5bbce8334303727627b628ece72e798d.tar nvim-treesitter-94bd4bcc5bbce8334303727627b628ece72e798d.tar.gz nvim-treesitter-94bd4bcc5bbce8334303727627b628ece72e798d.tar.bz2 nvim-treesitter-94bd4bcc5bbce8334303727627b628ece72e798d.tar.lz nvim-treesitter-94bd4bcc5bbce8334303727627b628ece72e798d.tar.xz nvim-treesitter-94bd4bcc5bbce8334303727627b628ece72e798d.tar.zst nvim-treesitter-94bd4bcc5bbce8334303727627b628ece72e798d.zip | |
feat: add the zathurarc parser (#5948)
Diffstat (limited to 'queries/zathurarc')
| -rw-r--r-- | queries/zathurarc/highlights.scm | 36 | ||||
| -rw-r--r-- | queries/zathurarc/injections.scm | 9 |
2 files changed, 45 insertions, 0 deletions
diff --git a/queries/zathurarc/highlights.scm b/queries/zathurarc/highlights.scm new file mode 100644 index 000000000..04daa190a --- /dev/null +++ b/queries/zathurarc/highlights.scm @@ -0,0 +1,36 @@ +; General +(path) @string.special.path + +(option) @variable.builtin + +(command) @keyword + +(include_directive + (command) @keyword.import) + +(mode_name) @type.builtin + +(key) @constant + +(function) @function.call + +(argument) @variable.parameter + +; Comments +(comment) @comment @spell + +; Literals +(int) @number + +(float) @number.float + +(string) @string + +(bool) @boolean + +[ + "<" + ">" + "[" + "]" +] @punctuation.bracket diff --git a/queries/zathurarc/injections.scm b/queries/zathurarc/injections.scm new file mode 100644 index 000000000..8e45396b7 --- /dev/null +++ b/queries/zathurarc/injections.scm @@ -0,0 +1,9 @@ +(set_directive + (option) @_option + (string) @injection.content + (#eq? @_option "synctex-editor-command") + (#offset! @injection.content 0 1 0 -1) + (#set! injection.language "bash")) + +((comment) @injection.content + (#set! injection.language "comment")) |
