From bde6176c9107e32466f28dc96e9a71fd4d7bb644 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Thu, 8 Sep 2022 14:26:18 -0700 Subject: feat(treesitter): bundle :help parser and queries parser from https://github.com/vigoux/tree-sitter-vimdoc queries from nvim-treesitter --- runtime/queries/help/highlights.scm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 runtime/queries/help/highlights.scm (limited to 'runtime/queries/help/highlights.scm') diff --git a/runtime/queries/help/highlights.scm b/runtime/queries/help/highlights.scm new file mode 100644 index 0000000000..41c78a7f1c --- /dev/null +++ b/runtime/queries/help/highlights.scm @@ -0,0 +1,14 @@ +(headline) @text.title +(column_heading) @text.title +(tag + "*" @conceal (#set! conceal "") + name: (_) @label) +(option + name: (_) @text.literal) +(hotlink + "|" @conceal (#set! conceal "") + destination: (_) @text.reference) +(backtick + "`" @conceal (#set! conceal "") + content: (_) @string) +(argument) @parameter -- cgit From a5effcedd2888298fda62947410316c080e9a4dc Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Wed, 28 Sep 2022 16:29:35 +0200 Subject: build(deps): bump help parser and queries (#20388) --- runtime/queries/help/highlights.scm | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'runtime/queries/help/highlights.scm') diff --git a/runtime/queries/help/highlights.scm b/runtime/queries/help/highlights.scm index 41c78a7f1c..6be4e49c81 100644 --- a/runtime/queries/help/highlights.scm +++ b/runtime/queries/help/highlights.scm @@ -1,14 +1,16 @@ -(headline) @text.title +(h1) @text.title +(h2) @text.title +(h3) @text.title (column_heading) @text.title (tag "*" @conceal (#set! conceal "") - name: (_) @label) -(option - name: (_) @text.literal) -(hotlink + text: (_) @label) +(taglink "|" @conceal (#set! conceal "") - destination: (_) @text.reference) -(backtick + text: (_) @text.reference) +(optionlink + text: (_) @text.literal) +(codespan "`" @conceal (#set! conceal "") - content: (_) @string) + text: (_) @string) (argument) @parameter -- cgit From d339b4aad7461937e1e03ac0836b2eb1354ff442 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Thu, 13 Oct 2022 21:36:25 -0400 Subject: build(deps): bump vimdoc (help) parser to v1.2.1 #20642 --- runtime/queries/help/highlights.scm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'runtime/queries/help/highlights.scm') diff --git a/runtime/queries/help/highlights.scm b/runtime/queries/help/highlights.scm index 6be4e49c81..cd4b6f8269 100644 --- a/runtime/queries/help/highlights.scm +++ b/runtime/queries/help/highlights.scm @@ -9,8 +9,11 @@ "|" @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 (argument) @parameter +(keycode) @string.special +(url) @text.uri -- cgit From 29fe3348ba126a334d7e6f06a66f14ec3110d02f Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Mon, 24 Oct 2022 09:35:00 +0200 Subject: build(deps): bump vimdoc parser and queries to v1.2.4 (#20788) --- runtime/queries/help/highlights.scm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'runtime/queries/help/highlights.scm') diff --git a/runtime/queries/help/highlights.scm b/runtime/queries/help/highlights.scm index cd4b6f8269..50beeed8b9 100644 --- a/runtime/queries/help/highlights.scm +++ b/runtime/queries/help/highlights.scm @@ -14,6 +14,10 @@ "`" @conceal (#set! conceal "") text: (_) @text.literal) (codeblock) @text.literal +(codeblock + ">" @conceal (#set! conceal "")) +(block + "<" @conceal (#set! conceal "")) (argument) @parameter (keycode) @string.special (url) @text.uri -- cgit From dab07be4d14b3d4d94cbab2bdc29d3e6985e21f2 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Thu, 27 Oct 2022 09:16:16 +0200 Subject: build(deps): bump vimdoc parser to v1.2.5 (#20829) --- runtime/queries/help/highlights.scm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'runtime/queries/help/highlights.scm') diff --git a/runtime/queries/help/highlights.scm b/runtime/queries/help/highlights.scm index 50beeed8b9..b2ed390336 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) -- cgit From 5093f38c9fed9fae04234035ea253862ba8375ef Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Tue, 22 Nov 2022 13:50:50 +0100 Subject: feat(help): highlighted codeblocks --- runtime/queries/help/highlights.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/queries/help/highlights.scm') 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 -- cgit