aboutsummaryrefslogtreecommitdiffstats
path: root/queries
diff options
context:
space:
mode:
authorRiley Bruins <ribru17@hotmail.com>2024-06-13 21:08:40 -0700
committerChristian Clason <c.clason@uni-graz.at>2024-06-14 08:35:26 +0200
commitbb0eb73014fe7de0b31f2cbaf1d9b984bb7b58dc (patch)
tree479de9509c4e73e32c432dd860df16561d3afa34 /queries
parentfix(gitcommit): correct the file path capture (#6765) (diff)
downloadnvim-treesitter-bb0eb73014fe7de0b31f2cbaf1d9b984bb7b58dc.tar
nvim-treesitter-bb0eb73014fe7de0b31f2cbaf1d9b984bb7b58dc.tar.gz
nvim-treesitter-bb0eb73014fe7de0b31f2cbaf1d9b984bb7b58dc.tar.bz2
nvim-treesitter-bb0eb73014fe7de0b31f2cbaf1d9b984bb7b58dc.tar.lz
nvim-treesitter-bb0eb73014fe7de0b31f2cbaf1d9b984bb7b58dc.tar.xz
nvim-treesitter-bb0eb73014fe7de0b31f2cbaf1d9b984bb7b58dc.tar.zst
nvim-treesitter-bb0eb73014fe7de0b31f2cbaf1d9b984bb7b58dc.zip
fix(markdown): capture entire heading line
Diffstat (limited to 'queries')
-rw-r--r--queries/markdown/highlights.scm18
1 files changed, 6 insertions, 12 deletions
diff --git a/queries/markdown/highlights.scm b/queries/markdown/highlights.scm
index 4b445e02f..a9ce4df20 100644
--- a/queries/markdown/highlights.scm
+++ b/queries/markdown/highlights.scm
@@ -8,28 +8,22 @@
(setext_h2_underline) @markup.heading.2)
(atx_heading
- (atx_h1_marker) @markup.heading.1
- (inline) @markup.heading.1)
+ (atx_h1_marker)) @markup.heading.1
(atx_heading
- (atx_h2_marker) @markup.heading.2
- (inline) @markup.heading.2)
+ (atx_h2_marker)) @markup.heading.2
(atx_heading
- (atx_h3_marker) @markup.heading.3
- (inline) @markup.heading.3)
+ (atx_h3_marker)) @markup.heading.3
(atx_heading
- (atx_h4_marker) @markup.heading.4
- (inline) @markup.heading.4)
+ (atx_h4_marker)) @markup.heading.4
(atx_heading
- (atx_h5_marker) @markup.heading.5
- (inline) @markup.heading.5)
+ (atx_h5_marker)) @markup.heading.5
(atx_heading
- (atx_h6_marker) @markup.heading.6
- (inline) @markup.heading.6)
+ (atx_h6_marker)) @markup.heading.6
(info_string) @label