|
|
@ -12,6 +12,8 @@
|
|
|
|
(unicode_string_literal)
|
|
|
|
(unicode_string_literal)
|
|
|
|
(yul_string_literal)
|
|
|
|
(yul_string_literal)
|
|
|
|
] @string
|
|
|
|
] @string
|
|
|
|
|
|
|
|
(hex_string_literal "hex" @string.special.symbol)
|
|
|
|
|
|
|
|
(unicode_string_literal "unicode" @string.special.symbol)
|
|
|
|
[
|
|
|
|
[
|
|
|
|
(number_literal)
|
|
|
|
(number_literal)
|
|
|
|
(yul_decimal_number)
|
|
|
|
(yul_decimal_number)
|
|
|
@ -20,6 +22,7 @@
|
|
|
|
[
|
|
|
|
[
|
|
|
|
(true)
|
|
|
|
(true)
|
|
|
|
(false)
|
|
|
|
(false)
|
|
|
|
|
|
|
|
(yul_boolean)
|
|
|
|
] @constant.builtin.boolean
|
|
|
|
] @constant.builtin.boolean
|
|
|
|
|
|
|
|
|
|
|
|
(comment) @comment
|
|
|
|
(comment) @comment
|
|
|
@ -44,18 +47,18 @@
|
|
|
|
(type_name "(" @punctuation.bracket "=>" @punctuation.delimiter ")" @punctuation.bracket)
|
|
|
|
(type_name "(" @punctuation.bracket "=>" @punctuation.delimiter ")" @punctuation.bracket)
|
|
|
|
|
|
|
|
|
|
|
|
; Definitions
|
|
|
|
; Definitions
|
|
|
|
(struct_declaration
|
|
|
|
(struct_declaration
|
|
|
|
name: (identifier) @type)
|
|
|
|
name: (identifier) @type)
|
|
|
|
(enum_declaration
|
|
|
|
(enum_declaration
|
|
|
|
name: (identifier) @type)
|
|
|
|
name: (identifier) @type)
|
|
|
|
(contract_declaration
|
|
|
|
(contract_declaration
|
|
|
|
name: (identifier) @type)
|
|
|
|
name: (identifier) @type)
|
|
|
|
(library_declaration
|
|
|
|
(library_declaration
|
|
|
|
name: (identifier) @type)
|
|
|
|
name: (identifier) @type)
|
|
|
|
(interface_declaration
|
|
|
|
(interface_declaration
|
|
|
|
name: (identifier) @type)
|
|
|
|
name: (identifier) @type)
|
|
|
|
(event_definition
|
|
|
|
(event_definition
|
|
|
|
name: (identifier) @type)
|
|
|
|
name: (identifier) @type)
|
|
|
|
|
|
|
|
|
|
|
|
(function_definition
|
|
|
|
(function_definition
|
|
|
|
name: (identifier) @function)
|
|
|
|
name: (identifier) @function)
|
|
|
|