aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/help
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2023-01-25 17:57:01 +0000
committerJosh Rahm <joshuarahm@gmail.com>2023-01-25 17:57:01 +0000
commit9837de570c5972f98e74848edc97c297a13136ea (patch)
treecc948611912d116a3f98a744e690d3d7b6e2f59a /runtime/queries/help
parentc367400b73d207833d51e09d663f969ffab37531 (diff)
parent3c48d3c83fc21dbc0841f9210f04bdb073d73cd1 (diff)
downloadrneovim-9837de570c5972f98e74848edc97c297a13136ea.tar.gz
rneovim-9837de570c5972f98e74848edc97c297a13136ea.tar.bz2
rneovim-9837de570c5972f98e74848edc97c297a13136ea.zip
Merge remote-tracking branch 'upstream/master' into colorcolchar
Diffstat (limited to 'runtime/queries/help')
-rw-r--r--runtime/queries/help/highlights.scm13
-rw-r--r--runtime/queries/help/injections.scm3
2 files changed, 14 insertions, 2 deletions
diff --git a/runtime/queries/help/highlights.scm b/runtime/queries/help/highlights.scm
index 6be4e49c81..c0d88301bc 100644
--- a/runtime/queries/help/highlights.scm
+++ b/runtime/queries/help/highlights.scm
@@ -2,6 +2,8 @@
(h2) @text.title
(h3) @text.title
(column_heading) @text.title
+(column_heading
+ "~" @conceal (#set! conceal ""))
(tag
"*" @conceal (#set! conceal "")
text: (_) @label)
@@ -9,8 +11,15 @@
"|" @conceal (#set! conceal "")
text: (_) @text.reference)
(optionlink
- text: (_) @text.literal)
+ text: (_) @text.reference)
(codespan
"`" @conceal (#set! conceal "")
- text: (_) @string)
+ text: (_) @text.literal)
+(codeblock) @text.literal
+(codeblock
+ [">" (language)] @conceal (#set! conceal ""))
+(block
+ "<" @conceal (#set! conceal ""))
(argument) @parameter
+(keycode) @string.special
+(url) @text.uri
diff --git a/runtime/queries/help/injections.scm b/runtime/queries/help/injections.scm
new file mode 100644
index 0000000000..09bbe44e84
--- /dev/null
+++ b/runtime/queries/help/injections.scm
@@ -0,0 +1,3 @@
+(codeblock
+ (language) @language
+ (code) @content)