mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-12 00:10:04 -04:00
chore: query formatting
This commit is contained in:
parent
79975d6557
commit
57a8acf0c4
674 changed files with 18466 additions and 12648 deletions
|
|
@ -1,4 +1,4 @@
|
|||
;; From MDeiml/tree-sitter-markdown
|
||||
; From MDeiml/tree-sitter-markdown
|
||||
(code_span) @markup.raw @nospell
|
||||
|
||||
(emphasis) @markup.italic
|
||||
|
|
@ -12,7 +12,8 @@
|
|||
(uri_autolink)
|
||||
] @markup.link.url @nospell
|
||||
|
||||
(shortcut_link (link_text) @nospell)
|
||||
(shortcut_link
|
||||
(link_text) @nospell)
|
||||
|
||||
[
|
||||
(link_label)
|
||||
|
|
@ -29,6 +30,7 @@
|
|||
; Conceal codeblock and text style markers
|
||||
((code_span_delimiter) @markup.raw
|
||||
(#set! conceal ""))
|
||||
|
||||
((emphasis_delimiter) @markup.strong
|
||||
(#set! conceal ""))
|
||||
|
||||
|
|
@ -80,10 +82,27 @@
|
|||
] @markup.link
|
||||
(#set! conceal ""))
|
||||
|
||||
;; Replace common HTML entities.
|
||||
((entity_reference) @character.special (#eq? @character.special " ") (#set! conceal ""))
|
||||
((entity_reference) @character.special (#eq? @character.special "<") (#set! conceal "<"))
|
||||
((entity_reference) @character.special (#eq? @character.special ">") (#set! conceal ">"))
|
||||
((entity_reference) @character.special (#eq? @character.special "&") (#set! conceal "&"))
|
||||
((entity_reference) @character.special (#eq? @character.special """) (#set! conceal "\""))
|
||||
((entity_reference) @character.special (#any-of? @character.special " " " ") (#set! conceal " "))
|
||||
; Replace common HTML entities.
|
||||
((entity_reference) @character.special
|
||||
(#eq? @character.special " ")
|
||||
(#set! conceal ""))
|
||||
|
||||
((entity_reference) @character.special
|
||||
(#eq? @character.special "<")
|
||||
(#set! conceal "<"))
|
||||
|
||||
((entity_reference) @character.special
|
||||
(#eq? @character.special ">")
|
||||
(#set! conceal ">"))
|
||||
|
||||
((entity_reference) @character.special
|
||||
(#eq? @character.special "&")
|
||||
(#set! conceal "&"))
|
||||
|
||||
((entity_reference) @character.special
|
||||
(#eq? @character.special """)
|
||||
(#set! conceal "\""))
|
||||
|
||||
((entity_reference) @character.special
|
||||
(#any-of? @character.special " " " ")
|
||||
(#set! conceal " "))
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
((html_tag) @injection.content
|
||||
(#set! injection.language "html")
|
||||
(#set! injection.combined))
|
||||
(#set! injection.language "html")
|
||||
(#set! injection.combined))
|
||||
|
||||
((latex_block) @injection.content
|
||||
(#set! injection.language "latex")
|
||||
(#set! injection.include-children))
|
||||
(#set! injection.language "latex")
|
||||
(#set! injection.include-children))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue