Fixup format (#5934)

* fix(format): newline between top-level field defs

* fixup: newline between node and comment

* fixup: optimize pattern
This commit is contained in:
Phạm Huy Hoàng 2024-01-20 18:47:56 +09:00 committed by GitHub
parent f5a839d1e8
commit d198a75e2c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
35 changed files with 47 additions and 3 deletions

View file

@ -9,6 +9,7 @@
variable: (IDENTIFIER)
variable_type_function: (IDENTIFIER)
] @variable
parameter: (IDENTIFIER) @variable.parameter
[
@ -38,8 +39,11 @@ parameter: (IDENTIFIER) @variable.parameter
field_access: (IDENTIFIER)
] @constant
(#lua-match? @constant "^%u[%u%d_]+$"))
function: (IDENTIFIER) @function
function_call: (IDENTIFIER) @function.call
exception: "!" @keyword.exception
((IDENTIFIER) @variable.builtin
@ -55,6 +59,7 @@ exception: "!" @keyword.exception
])
(ContainerField
(IDENTIFIER) @constant))
field_constant: (IDENTIFIER) @constant
(BUILTINIDENTIFIER) @function.builtin