|
|
@ -7,6 +7,18 @@
|
|
|
|
(line_comment)
|
|
|
|
(line_comment)
|
|
|
|
] @comment.line
|
|
|
|
] @comment.line
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[
|
|
|
|
|
|
|
|
variable: (IDENTIFIER)
|
|
|
|
|
|
|
|
variable_type_function: (IDENTIFIER)
|
|
|
|
|
|
|
|
] @variable
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
parameter: (IDENTIFIER) @variable.parameter
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[
|
|
|
|
|
|
|
|
field_member: (IDENTIFIER)
|
|
|
|
|
|
|
|
field_access: (IDENTIFIER)
|
|
|
|
|
|
|
|
] @variable.other.member
|
|
|
|
|
|
|
|
|
|
|
|
;; assume TitleCase is a type
|
|
|
|
;; assume TitleCase is a type
|
|
|
|
(
|
|
|
|
(
|
|
|
|
[
|
|
|
|
[
|
|
|
@ -36,6 +48,13 @@
|
|
|
|
(#match? @constant "^[A-Z][A-Z_0-9]+$")
|
|
|
|
(#match? @constant "^[A-Z][A-Z_0-9]+$")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[
|
|
|
|
|
|
|
|
function_call: (IDENTIFIER)
|
|
|
|
|
|
|
|
function: (IDENTIFIER)
|
|
|
|
|
|
|
|
] @function
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
exception: "!" @keyword.control.exception
|
|
|
|
|
|
|
|
|
|
|
|
;; _
|
|
|
|
;; _
|
|
|
|
(
|
|
|
|
(
|
|
|
|
(IDENTIFIER) @variable.builtin
|
|
|
|
(IDENTIFIER) @variable.builtin
|
|
|
@ -45,25 +64,6 @@
|
|
|
|
;; C Pointers [*c]T
|
|
|
|
;; C Pointers [*c]T
|
|
|
|
(PtrTypeStart "c" @variable.builtin)
|
|
|
|
(PtrTypeStart "c" @variable.builtin)
|
|
|
|
|
|
|
|
|
|
|
|
[
|
|
|
|
|
|
|
|
variable: (IDENTIFIER)
|
|
|
|
|
|
|
|
variable_type_function: (IDENTIFIER)
|
|
|
|
|
|
|
|
] @variable
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
parameter: (IDENTIFIER) @variable.parameter
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[
|
|
|
|
|
|
|
|
field_member: (IDENTIFIER)
|
|
|
|
|
|
|
|
field_access: (IDENTIFIER)
|
|
|
|
|
|
|
|
] @variable.other.member
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[
|
|
|
|
|
|
|
|
function_call: (IDENTIFIER)
|
|
|
|
|
|
|
|
function: (IDENTIFIER)
|
|
|
|
|
|
|
|
] @function
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
exception: "!" @keyword.control.exception
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
field_constant: (IDENTIFIER) @constant
|
|
|
|
field_constant: (IDENTIFIER) @constant
|
|
|
|
|
|
|
|
|
|
|
|
(BUILTINIDENTIFIER) @function.builtin
|
|
|
|
(BUILTINIDENTIFIER) @function.builtin
|
|
|
|