summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2023-12-21 14:29:31 +0100
committerGitHub <noreply@github.com>2023-12-21 22:29:31 +0900
commitd2d3df8613ba0b733cc21ed150e3687fad147316 (patch)
tree5228eccd77791992d32a84449ae1cb270b03b215
parentAdd @nospell annotation to label definitions and references (diff)
downloadnvim-treesitter-d2d3df8613ba0b733cc21ed150e3687fad147316.tar
nvim-treesitter-d2d3df8613ba0b733cc21ed150e3687fad147316.tar.gz
nvim-treesitter-d2d3df8613ba0b733cc21ed150e3687fad147316.tar.bz2
nvim-treesitter-d2d3df8613ba0b733cc21ed150e3687fad147316.tar.lz
nvim-treesitter-d2d3df8613ba0b733cc21ed150e3687fad147316.tar.xz
nvim-treesitter-d2d3df8613ba0b733cc21ed150e3687fad147316.tar.zst
nvim-treesitter-d2d3df8613ba0b733cc21ed150e3687fad147316.zip
vimdoc: add note, warning, deprecated (#5817)
-rw-r--r--lockfile.json2
-rw-r--r--queries/vimdoc/highlights.scm6
2 files changed, 7 insertions, 1 deletions
diff --git a/lockfile.json b/lockfile.json
index b4da6a21a..e60a56af1 100644
--- a/lockfile.json
+++ b/lockfile.json
@@ -708,7 +708,7 @@
"revision": "32c76f150347c1cd044e90b8e2bc73c00677fa55"
},
"vimdoc": {
- "revision": "60045f7d717eba85fa8abd996e0bb50eed5a3d8e"
+ "revision": "4f8ba9e39c8b3fbaf0bb5f70ac255474a9099359"
},
"vue": {
"revision": "91fe2754796cd8fba5f229505a23fa08f3546c06"
diff --git a/queries/vimdoc/highlights.scm b/queries/vimdoc/highlights.scm
index c52333df1..78ae9dab9 100644
--- a/queries/vimdoc/highlights.scm
+++ b/queries/vimdoc/highlights.scm
@@ -23,3 +23,9 @@
(argument) @parameter
(keycode) @string.special
(url) @text.uri
+((note) @text.note
+ (#any-of? @text.note "Note:" "NOTE:" "Notes:"))
+((note) @text.warning
+ (#any-of? @text.warning "Warning:" "WARNING:"))
+((note) @text.danger
+ (#any-of? @text.danger "Deprecated:" "DEPRECATED:"))