diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2023-06-12 09:54:30 -0600 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2025-05-12 18:43:40 +0200 |
| commit | 692b051b09935653befdb8f7ba8afdb640adf17b (patch) | |
| tree | 167162b6b129ae04f68c5735078521a72917c742 /runtime/queries/vimdoc | |
| parent | feat(c-family): inherit injections (diff) | |
| download | nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.gz nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.bz2 nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.lz nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.xz nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.zst nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.zip | |
feat!: drop modules, general refactor and cleanup
Diffstat (limited to 'runtime/queries/vimdoc')
| -rw-r--r-- | runtime/queries/vimdoc/highlights.scm | 74 | ||||
| -rw-r--r-- | runtime/queries/vimdoc/injections.scm | 4 |
2 files changed, 78 insertions, 0 deletions
diff --git a/runtime/queries/vimdoc/highlights.scm b/runtime/queries/vimdoc/highlights.scm new file mode 100644 index 000000000..829a643ae --- /dev/null +++ b/runtime/queries/vimdoc/highlights.scm @@ -0,0 +1,74 @@ +(h1 + (delimiter) @markup.heading.1 + (heading) @markup.heading.1) + +(h2 + (delimiter) @markup.heading.2 + (heading) @markup.heading.2) + +(h3 + (heading) @markup.heading.3) + +(column_heading + (heading) @markup.heading.4) + +(column_heading + (delimiter) @markup.heading.4 + (#set! conceal "")) + +(tag + "*" @label + (#set! conceal "")) + +(tag + text: (_) @label) + +(taglink + "|" @markup.link + (#set! conceal "")) + +(taglink + text: (_) @markup.link) + +(optionlink + text: (_) @markup.link) + +(codespan + "`" @markup.raw + (#set! conceal "")) + +(codespan + text: (_) @markup.raw) + +((codeblock) @markup.raw.block + (#set! priority 90)) + +(codeblock + ">" @markup.raw + (#set! conceal "")) + +(codeblock + (language) @label + (#set! conceal "")) + +(block + "<" @markup.raw + (#set! conceal "")) + +(argument) @variable.parameter + +(keycode) @string.special + +((url) @string.special.url + (#set! @string.special.url url @string.special.url)) + +(modeline) @keyword.directive + +((note) @comment.note + (#any-of? @comment.note "Note:" "NOTE:" "Notes:")) + +((note) @comment.warning + (#any-of? @comment.warning "Warning:" "WARNING:")) + +((note) @comment.error + (#any-of? @comment.error "Deprecated:" "DEPRECATED:")) diff --git a/runtime/queries/vimdoc/injections.scm b/runtime/queries/vimdoc/injections.scm new file mode 100644 index 000000000..3b8fbf0f3 --- /dev/null +++ b/runtime/queries/vimdoc/injections.scm @@ -0,0 +1,4 @@ +((codeblock + (language) @injection.language + (code) @injection.content) + (#set! injection.include-children)) |
