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,4 +1,4 @@
;;;; Simple tokens ;;;;
; Simple tokens ;;;;
(terminal) @string.grammar
(special_sequence) @string.special.grammar
@ -7,37 +7,36 @@
(comment) @comment @spell
;;;; Identifiers ;;;;
; Identifiers ;;;;
; Allow different highlighting for specific casings
((identifier) @type
(#lua-match? @type "^%u"))
(#lua-match? @type "^%u"))
((identifier) @string.special.symbol
(#lua-match? @string.special.symbol "^%l"))
(#lua-match? @string.special.symbol "^%l"))
((identifier) @constant
(#lua-match? @constant "^%u[%u%d_]+$"))
(#lua-match? @constant "^%u[%u%d_]+$"))
;;; Punctuation ;;;;
; Punctuation ;;;;
[
";"
","
";"
","
] @punctuation.delimiter
[
"|"
"*"
"-"
"|"
"*"
"-"
] @operator
"=" @keyword.operator
[
"("
")"
"["
"]"
"{"
"}"
"("
")"
"["
"]"
"{"
"}"
] @punctuation.bracket