aboutsummaryrefslogtreecommitdiffstats
path: root/queries/markdown
diff options
context:
space:
mode:
authorMichael Chris Lopez <hello@michaelchris.space>2021-12-20 08:38:42 +0800
committerGitHub <noreply@github.com>2021-12-19 19:38:42 -0500
commitc9db4324351576d55e6a34d29a571843eff68ac3 (patch)
tree6bb9ae3fbddb8615e8535a9ed8f0031cb33279c3 /queries/markdown
parenthighlights(python): Improve self and cls highlight (#2134) (diff)
downloadnvim-treesitter-c9db4324351576d55e6a34d29a571843eff68ac3.tar
nvim-treesitter-c9db4324351576d55e6a34d29a571843eff68ac3.tar.gz
nvim-treesitter-c9db4324351576d55e6a34d29a571843eff68ac3.tar.bz2
nvim-treesitter-c9db4324351576d55e6a34d29a571843eff68ac3.tar.lz
nvim-treesitter-c9db4324351576d55e6a34d29a571843eff68ac3.tar.xz
nvim-treesitter-c9db4324351576d55e6a34d29a571843eff68ac3.tar.zst
nvim-treesitter-c9db4324351576d55e6a34d29a571843eff68ac3.zip
highlights(markdown): separate highlight for header marker and underline (#2129)
Diffstat (limited to 'queries/markdown')
-rw-r--r--queries/markdown/highlights.scm15
1 files changed, 12 insertions, 3 deletions
diff --git a/queries/markdown/highlights.scm b/queries/markdown/highlights.scm
index 473aa365e..612df57b6 100644
--- a/queries/markdown/highlights.scm
+++ b/queries/markdown/highlights.scm
@@ -1,8 +1,17 @@
;; From MDeiml/tree-sitter-markdown
+(atx_heading (heading_content) @text.title)
+(setext_heading (heading_content) @text.title)
+
[
- (atx_heading)
- (setext_heading)
-] @text.title
+ (atx_h1_marker)
+ (atx_h2_marker)
+ (atx_h3_marker)
+ (atx_h4_marker)
+ (atx_h5_marker)
+ (atx_h6_marker)
+ (setext_h1_underline)
+ (setext_h2_underline)
+] @punctuation.special
(code_fence_content) @none