aboutsummaryrefslogtreecommitdiffstats
path: root/queries/latex
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2023-05-13 11:23:50 +0200
committerChristian Clason <c.clason@uni-graz.at>2023-05-13 16:50:32 +0200
commit680807fa6a482c639119098bc48ca3831c66db13 (patch)
treeaf757491af328fa87221a692b832ee5cf545b7e7 /queries/latex
parentUpdate parsers: bicep, c_sharp, cpon, func, gosum, hare, kdl, lua, luadoc, lu... (diff)
downloadnvim-treesitter-680807fa6a482c639119098bc48ca3831c66db13.tar
nvim-treesitter-680807fa6a482c639119098bc48ca3831c66db13.tar.gz
nvim-treesitter-680807fa6a482c639119098bc48ca3831c66db13.tar.bz2
nvim-treesitter-680807fa6a482c639119098bc48ca3831c66db13.tar.lz
nvim-treesitter-680807fa6a482c639119098bc48ca3831c66db13.tar.xz
nvim-treesitter-680807fa6a482c639119098bc48ca3831c66db13.tar.zst
nvim-treesitter-680807fa6a482c639119098bc48ca3831c66db13.zip
highlights(markup): distinguish heading level in queries
also add a few queries from Helix and remove controversial code block conceal in Markdown
Diffstat (limited to 'queries/latex')
-rw-r--r--queries/latex/highlights.scm34
1 files changed, 17 insertions, 17 deletions
diff --git a/queries/latex/highlights.scm b/queries/latex/highlights.scm
index 791689ff5..5d68cdfb0 100644
--- a/queries/latex/highlights.scm
+++ b/queries/latex/highlights.scm
@@ -126,48 +126,48 @@
;; Sectioning
(title_declaration
command: _ @namespace
- options: (brack_group (_) @text.title)?
- text: (curly_group (_) @text.title))
+ options: (brack_group (_) @text.title.1)?
+ text: (curly_group (_) @text.title.1))
(author_declaration
command: _ @namespace
authors: (curly_group_author_list
- ((author)+ @text.title)))
+ ((author)+ @text.title.1)))
(chapter
command: _ @namespace
- toc: (brack_group (_) @text.title)?
- text: (curly_group (_) @text.title))
+ toc: (brack_group (_) @text.title.2)?
+ text: (curly_group (_) @text.title.2))
(part
command: _ @namespace
- toc: (brack_group (_) @text.title)?
- text: (curly_group (_) @text.title))
+ toc: (brack_group (_) @text.title.2)?
+ text: (curly_group (_) @text.title.2))
(section
command: _ @namespace
- toc: (brack_group (_) @text.title)?
- text: (curly_group (_) @text.title))
+ toc: (brack_group (_) @text.title.3)?
+ text: (curly_group (_) @text.title.3))
(subsection
command: _ @namespace
- toc: (brack_group (_) @text.title)?
- text: (curly_group (_) @text.title))
+ toc: (brack_group (_) @text.title.4)?
+ text: (curly_group (_) @text.title.4))
(subsubsection
command: _ @namespace
- toc: (brack_group (_) @text.title)?
- text: (curly_group (_) @text.title))
+ toc: (brack_group (_) @text.title.5)?
+ text: (curly_group (_) @text.title.5))
(paragraph
command: _ @namespace
- toc: (brack_group (_) @text.title)?
- text: (curly_group (_) @text.title))
+ toc: (brack_group (_) @text.title.6)?
+ text: (curly_group (_) @text.title.6))
(subparagraph
command: _ @namespace
- toc: (brack_group (_) @text.title)?
- text: (curly_group (_) @text.title))
+ toc: (brack_group (_) @text.title.6)?
+ text: (curly_group (_) @text.title.6))
;; Beamer frames
(generic_environment