From 105a9e3dcf95ba64e7737a479579e20063ead0bb Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Sat, 8 Jun 2024 10:19:28 +0200 Subject: build(deps): bump tree-sitter-vimdoc to v3.0.0 --- runtime/queries/vimdoc/highlights.scm | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'runtime/queries/vimdoc') diff --git a/runtime/queries/vimdoc/highlights.scm b/runtime/queries/vimdoc/highlights.scm index 70a3a2f206..194c80362c 100644 --- a/runtime/queries/vimdoc/highlights.scm +++ b/runtime/queries/vimdoc/highlights.scm @@ -1,13 +1,19 @@ -(h1) @markup.heading.1 +(h1 + (delimiter) @markup.heading.1 + (heading) @markup.heading.1) -(h2) @markup.heading.2 +(h2 + (delimiter) @markup.heading.2 + (heading) @markup.heading.2) -(h3) @markup.heading.3 +(h3 + (heading) @markup.heading.3) -(column_heading) @markup.heading.4 +(column_heading + (heading) @markup.heading.4) (column_heading - "~" @markup.heading.4 + (delimiter) @markup.heading.4 (#set! conceal "")) (tag -- cgit From 9e80738f3073e6dc95ebefee60526c7c1499d7d2 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Sun, 28 Jul 2024 12:13:10 +0200 Subject: fix(runtime): sync bundled treesitter queries --- runtime/queries/vimdoc/highlights.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'runtime/queries/vimdoc') diff --git a/runtime/queries/vimdoc/highlights.scm b/runtime/queries/vimdoc/highlights.scm index 194c80362c..829a643ae8 100644 --- a/runtime/queries/vimdoc/highlights.scm +++ b/runtime/queries/vimdoc/highlights.scm @@ -41,7 +41,7 @@ text: (_) @markup.raw) ((codeblock) @markup.raw.block - (#set! "priority" 90)) + (#set! priority 90)) (codeblock ">" @markup.raw @@ -59,7 +59,8 @@ (keycode) @string.special -(url) @string.special.url +((url) @string.special.url + (#set! @string.special.url url @string.special.url)) (modeline) @keyword.directive -- cgit From 09d76afe84dd5b895e102dcd8df8ce6271bebfef Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Fri, 27 Sep 2024 08:53:30 -0700 Subject: feat(defaults): pretty :help headings #30544 Problem: Headings in :help do not stand out visually. Solution: Define a non-standard `@markup.heading.1.delimiter` group and special-case it in `highlight_group.c`. FUTURE: This is a cheap workaround until we have #25718 which will enable: - fully driven by `vimdoc/highlights.scm` instead of using highlight tricks (`guibg=bg guifg=bg guisp=fg`) - better support of "cterm" ('notermguicolors') --- runtime/queries/vimdoc/highlights.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/queries/vimdoc') diff --git a/runtime/queries/vimdoc/highlights.scm b/runtime/queries/vimdoc/highlights.scm index 829a643ae8..1f809c2f60 100644 --- a/runtime/queries/vimdoc/highlights.scm +++ b/runtime/queries/vimdoc/highlights.scm @@ -1,9 +1,9 @@ (h1 - (delimiter) @markup.heading.1 + (delimiter) @markup.heading.1.delimiter (heading) @markup.heading.1) (h2 - (delimiter) @markup.heading.2 + (delimiter) @markup.heading.2.delimiter (heading) @markup.heading.2) (h3 -- cgit