|
40 | 40 | (type_name "(" @punctuation.bracket "=>" @punctuation.delimiter ")" @punctuation.bracket)
|
41 | 41 |
|
42 | 42 | ; Definitions
|
43 |
| -(struct_declaration |
| 43 | +(struct_declaration |
44 | 44 | name: (identifier) @type)
|
45 |
| -(enum_declaration |
| 45 | +(enum_declaration |
46 | 46 | name: (identifier) @type)
|
47 | 47 | (contract_declaration
|
48 |
| - name: (identifier) @type) |
| 48 | + name: (identifier) @type) |
49 | 49 | (library_declaration
|
50 |
| - name: (identifier) @type) |
| 50 | + name: (identifier) @type) |
51 | 51 | (interface_declaration
|
52 | 52 | name: (identifier) @type)
|
53 |
| -(event_definition |
54 |
| - name: (identifier) @type) |
| 53 | +(event_definition |
| 54 | + name: (identifier) @type) |
55 | 55 |
|
56 | 56 | (function_definition
|
57 | 57 | name: (identifier) @function)
|
|
68 | 68 | (struct_member name: (identifier) @property)
|
69 | 69 | (enum_value) @constant
|
70 | 70 |
|
71 |
| -; Invocations |
72 |
| -(emit_statement . (identifier) @type) |
| 71 | +; Invocations |
| 72 | +(emit_statement . (_) @type) |
73 | 73 | (modifier_invocation (identifier) @function)
|
74 | 74 |
|
75 |
| -(call_expression . (member_expression property: (identifier) @function.method)) |
76 |
| -(call_expression . (identifier) @function) |
| 75 | +(call_expression . (_(member_expression property: (_) @function.method))) |
| 76 | +(call_expression . (expression(identifier)) @function) |
77 | 77 |
|
78 | 78 | ; Function parameters
|
79 |
| -(call_struct_argument name: (identifier) @field) |
80 |
| -(event_parameter name: (identifier) @variable.parameter) |
| 79 | +(call_struct_argument name: (_) @field) |
| 80 | +(event_parameter name: (identifier) @parameter) |
81 | 81 | (parameter name: (identifier) @variable.parameter)
|
82 | 82 |
|
83 | 83 | ; Yul functions
|
84 | 84 | (yul_function_call function: (yul_identifier) @function)
|
85 |
| -(yul_function_definition . (yul_identifier) @function (yul_identifier) @variable.parameter) |
| 85 | +(yul_function_definition . (yul_identifier) @function (yul_identifier) @parameter) |
86 | 86 |
|
87 | 87 |
|
88 | 88 | ; Structs and members
|
89 | 89 | (member_expression property: (identifier) @property)
|
90 |
| -(struct_expression type: ((identifier) @type .)) |
| 90 | +(struct_expression type: ((expression(identifier)) @type .)) |
91 | 91 | (struct_field_assignment name: (identifier) @property)
|
92 | 92 |
|
93 | 93 |
|
|
146 | 146 | [
|
147 | 147 | "try"
|
148 | 148 | "catch"
|
149 |
| -] @keyword.exception |
| 149 | +] @exception |
150 | 150 |
|
151 | 151 | [
|
152 | 152 | "return"
|
|
155 | 155 |
|
156 | 156 | "function" @keyword.function
|
157 | 157 |
|
158 |
| -"import" @keyword.import |
159 |
| -(import_directive "as" @keyword.import) |
160 |
| -(import_directive "from" @keyword.import) |
| 158 | +"import" @include |
| 159 | +(import_directive "as" @include) |
| 160 | +(import_directive "from" @include) |
161 | 161 |
|
162 | 162 | (event_parameter "indexed" @keyword)
|
163 | 163 |
|
|
185 | 185 | "&&"
|
186 | 186 | "||"
|
187 | 187 | ">>"
|
188 |
| - ">>>" |
189 | 188 | "<<"
|
190 | 189 | "&"
|
191 | 190 | "^"
|
|
200 | 199 | "<="
|
201 | 200 | "=="
|
202 | 201 | "!="
|
203 |
| - "!==" |
204 | 202 | ">="
|
205 | 203 | ">"
|
206 | 204 | "!"
|
|
0 commit comments