mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 10:20:11 -04:00
chore: query formatting
This commit is contained in:
parent
79975d6557
commit
57a8acf0c4
674 changed files with 18466 additions and 12648 deletions
|
|
@ -1,5 +1,5 @@
|
|||
[
|
||||
(intent_def)
|
||||
(slot_def)
|
||||
(alias_def)
|
||||
(intent_def)
|
||||
(slot_def)
|
||||
(alias_def)
|
||||
] @fold
|
||||
|
|
|
|||
|
|
@ -1,24 +1,32 @@
|
|||
;; Punctuation
|
||||
|
||||
; Punctuation
|
||||
[
|
||||
"%["
|
||||
"@["
|
||||
"~["
|
||||
"*["
|
||||
"]"
|
||||
"("
|
||||
")"
|
||||
"%["
|
||||
"@["
|
||||
"~["
|
||||
"*["
|
||||
"]"
|
||||
"("
|
||||
")"
|
||||
] @punctuation.bracket
|
||||
|
||||
[":" ","] @punctuation.delimiter
|
||||
[
|
||||
":"
|
||||
","
|
||||
] @punctuation.delimiter
|
||||
|
||||
(["\"" "'"] @punctuation.special
|
||||
(#set! conceal ""))
|
||||
([
|
||||
"\""
|
||||
"'"
|
||||
] @punctuation.special
|
||||
(#set! conceal ""))
|
||||
|
||||
["%" "?" "#"] @character.special
|
||||
|
||||
;; Entities
|
||||
[
|
||||
"%"
|
||||
"?"
|
||||
"#"
|
||||
] @character.special
|
||||
|
||||
; Entities
|
||||
(intent) @module
|
||||
|
||||
(slot) @type
|
||||
|
|
@ -35,16 +43,13 @@
|
|||
|
||||
(escape) @string.escape
|
||||
|
||||
;; Import
|
||||
|
||||
; Import
|
||||
"import" @keyword.import
|
||||
|
||||
(file) @string.special.path
|
||||
|
||||
;; Text
|
||||
|
||||
; Text
|
||||
(word) @spell
|
||||
|
||||
;; Comment
|
||||
|
||||
; Comment
|
||||
(comment) @comment @spell
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
[
|
||||
(intent_def)
|
||||
(slot_def)
|
||||
(alias_def)
|
||||
(intent_def)
|
||||
(slot_def)
|
||||
(alias_def)
|
||||
] @indent.begin
|
||||
|
||||
(ERROR "]") @indent.begin
|
||||
(ERROR
|
||||
"]") @indent.begin
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
|
|
|
|||
|
|
@ -1,10 +1,16 @@
|
|||
;; Definitions
|
||||
; Definitions
|
||||
(intent_def
|
||||
(intent) @local.definition)
|
||||
|
||||
(intent_def (intent) @local.definition)
|
||||
(slot_def (slot) @local.definition)
|
||||
(alias_def (alias) @local.definition)
|
||||
(slot_def
|
||||
(slot) @local.definition)
|
||||
|
||||
;; References
|
||||
(alias_def
|
||||
(alias) @local.definition)
|
||||
|
||||
(slot_ref (slot) @local.reference)
|
||||
(alias_ref (alias) @local.reference)
|
||||
; References
|
||||
(slot_ref
|
||||
(slot) @local.reference)
|
||||
|
||||
(alias_ref
|
||||
(alias) @local.reference)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue