feat(solidity): add missing operators for highlights (#10757)
* feat(solidity): add missing operators for highlights * fix(solidity): remove invalid operator from highlight queries * Revert "fix(solidity): remove invalid operator from highlight queries" This reverts commit 466f38350c091695dec1729f6fbd6476f2bb7334. * feat(solidity): add highlight query for revert statements with custom errors * feat(solidity): more precise matching for revert statements
This commit is contained in:
parent
855568fa34
commit
380c7adcc0
1 changed files with 11 additions and 0 deletions
|
@ -75,6 +75,7 @@
|
|||
|
||||
; Invocations
|
||||
(emit_statement . (identifier) @type)
|
||||
(revert_statement error: (identifier) @type)
|
||||
(modifier_invocation (identifier) @function)
|
||||
|
||||
(call_expression . (member_expression property: (identifier) @function.method))
|
||||
|
@ -223,6 +224,16 @@
|
|||
"new"
|
||||
"++"
|
||||
"--"
|
||||
"+="
|
||||
"-="
|
||||
"*="
|
||||
"/="
|
||||
"%="
|
||||
"^="
|
||||
"&="
|
||||
"|="
|
||||
"<<="
|
||||
">>="
|
||||
] @operator
|
||||
|
||||
[
|
||||
|
|
Loading…
Add table
Reference in a new issue