highlights(markup): distinguish heading level in queries

also add a few queries from Helix and remove controversial
code block conceal in Markdown
This commit is contained in:
Christian Clason 2023-05-13 11:23:50 +02:00
parent 15300c1a10
commit 680807fa6a
5 changed files with 43 additions and 53 deletions

View file

@ -31,12 +31,10 @@
(hard_line_break)
] @string.escape
; "(" not part of query because of
; https://github.com/nvim-treesitter/nvim-treesitter/issues/2206
; TODO: Find better fix for this
(image ["!" "[" "]" "(" ")"] @punctuation.delimiter)
(inline_link ["[" "]" "(" ")"] @punctuation.delimiter)
(shortcut_link ["[" "]"] @punctuation.delimiter)
(image "!" @punctuation.special)
(image ["[" "]" "(" ")"] @punctuation.bracket)
(inline_link ["[" "]" "(" ")"] @punctuation.bracket)
(shortcut_link ["[" "]"] @punctuation.bracket)
; Conceal codeblock and text style markers
([