|
|
|
@ -1,22 +1,22 @@
|
|
|
|
; CREDITS @stumash (stuart.mashaal@gmail.com)
|
|
|
|
; CREDITS @stumash (stuart.mashaal@gmail.com)
|
|
|
|
|
|
|
|
|
|
|
|
(class_definition
|
|
|
|
(class_definition
|
|
|
|
name: (identifier) @type.definition)
|
|
|
|
name: (identifier) @type)
|
|
|
|
|
|
|
|
|
|
|
|
(enum_definition
|
|
|
|
(enum_definition
|
|
|
|
name: (identifier) @type.definition)
|
|
|
|
name: (identifier) @type)
|
|
|
|
|
|
|
|
|
|
|
|
(object_definition
|
|
|
|
(object_definition
|
|
|
|
name: (identifier) @type.definition)
|
|
|
|
name: (identifier) @type)
|
|
|
|
|
|
|
|
|
|
|
|
(trait_definition
|
|
|
|
(trait_definition
|
|
|
|
name: (identifier) @type.definition)
|
|
|
|
name: (identifier) @type)
|
|
|
|
|
|
|
|
|
|
|
|
(full_enum_case
|
|
|
|
(full_enum_case
|
|
|
|
name: (identifier) @type.definition)
|
|
|
|
name: (identifier) @type)
|
|
|
|
|
|
|
|
|
|
|
|
(simple_enum_case
|
|
|
|
(simple_enum_case
|
|
|
|
name: (identifier) @type.definition)
|
|
|
|
name: (identifier) @type)
|
|
|
|
|
|
|
|
|
|
|
|
;; variables
|
|
|
|
;; variables
|
|
|
|
|
|
|
|
|
|
|
|
@ -96,8 +96,6 @@
|
|
|
|
(generic_function
|
|
|
|
(generic_function
|
|
|
|
function: (identifier) @function.call)
|
|
|
|
function: (identifier) @function.call)
|
|
|
|
|
|
|
|
|
|
|
|
;; I think this is broken
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; function definitions
|
|
|
|
; function definitions
|
|
|
|
|
|
|
|
|
|
|
|
(function_definition
|
|
|
|
(function_definition
|
|
|
|
@ -111,7 +109,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
; expressions
|
|
|
|
; expressions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(field_expression field: (identifier) @property)
|
|
|
|
(field_expression field: (identifier) @property)
|
|
|
|
(field_expression value: (identifier) @type
|
|
|
|
(field_expression value: (identifier) @type
|
|
|
|
(#lua-match? @type "^[A-Z]"))
|
|
|
|
(#lua-match? @type "^[A-Z]"))
|
|
|
|
@ -161,6 +158,7 @@
|
|
|
|
"var"
|
|
|
|
"var"
|
|
|
|
"with"
|
|
|
|
"with"
|
|
|
|
"given"
|
|
|
|
"given"
|
|
|
|
|
|
|
|
"using"
|
|
|
|
"end"
|
|
|
|
"end"
|
|
|
|
"implicit"
|
|
|
|
"implicit"
|
|
|
|
"extension"
|
|
|
|
"extension"
|
|
|
|
@ -170,18 +168,13 @@
|
|
|
|
[
|
|
|
|
[
|
|
|
|
"abstract"
|
|
|
|
"abstract"
|
|
|
|
"final"
|
|
|
|
"final"
|
|
|
|
"using"
|
|
|
|
|
|
|
|
"lazy"
|
|
|
|
"lazy"
|
|
|
|
"sealed"
|
|
|
|
"sealed"
|
|
|
|
] @type.qualifier
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(inline_modifier) @storageclass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[
|
|
|
|
|
|
|
|
"private"
|
|
|
|
"private"
|
|
|
|
"protected"
|
|
|
|
"protected"
|
|
|
|
] @storageclass
|
|
|
|
] @type.qualifier
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(inline_modifier) @storageclass
|
|
|
|
|
|
|
|
|
|
|
|
(null_literal) @constant.builtin
|
|
|
|
(null_literal) @constant.builtin
|
|
|
|
|
|
|
|
|
|
|
|
|