diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2022-12-02 16:45:39 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-02 16:45:39 +0100 |
| commit | 07e6296520fc83b1fdb287b5173494cdd0e9136f (patch) | |
| tree | 9844003e550f161a5d563a726fc759fa1a84d22a /runtime/queries | |
| parent | 731432342058c1c4340fc3cc4782b5fcd4a756a0 (diff) | |
| parent | e40df8b1bc6a7832c7707696b374b19642dfd596 (diff) | |
| download | rneovim-07e6296520fc83b1fdb287b5173494cdd0e9136f.tar.gz rneovim-07e6296520fc83b1fdb287b5173494cdd0e9136f.tar.bz2 rneovim-07e6296520fc83b1fdb287b5173494cdd0e9136f.zip | |
Merge pull request #21154 from clason/vimdoc-injections
feat(help): highlighted codeblocks
Diffstat (limited to 'runtime/queries')
| -rw-r--r-- | runtime/queries/help/highlights.scm | 2 | ||||
| -rw-r--r-- | runtime/queries/help/injections.scm | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/runtime/queries/help/highlights.scm b/runtime/queries/help/highlights.scm index b2ed390336..c0d88301bc 100644 --- a/runtime/queries/help/highlights.scm +++ b/runtime/queries/help/highlights.scm @@ -17,7 +17,7 @@ text: (_) @text.literal) (codeblock) @text.literal (codeblock - ">" @conceal (#set! conceal "")) + [">" (language)] @conceal (#set! conceal "")) (block "<" @conceal (#set! conceal "")) (argument) @parameter 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) |