chore: query formatting

This commit is contained in:
Pham Huy Hoang 2024-01-06 15:05:50 +09:00 committed by Christian Clason
parent 79975d6557
commit 57a8acf0c4
674 changed files with 18466 additions and 12648 deletions

View file

@ -1,5 +1,5 @@
[
(intent_def)
(slot_def)
(alias_def)
(intent_def)
(slot_def)
(alias_def)
] @fold

View file

@ -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

View file

@ -1,7 +1,8 @@
[
(intent_def)
(slot_def)
(alias_def)
(intent_def)
(slot_def)
(alias_def)
] @indent.begin
(ERROR "]") @indent.begin
(ERROR
"]") @indent.begin

View file

@ -1,2 +1,2 @@
((comment) @injection.content
(#set! injection.language "comment"))
((comment) @injection.content
(#set! injection.language "comment"))

View file

@ -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)