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 466f38350c.

* feat(solidity): add highlight query for revert statements with custom errors

* feat(solidity): more precise matching for revert statements
This commit is contained in:
Valentin B 2024-05-14 10:53:59 +02:00 committed by GitHub
parent 855568fa34
commit 380c7adcc0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -75,6 +75,7 @@
; Invocations ; Invocations
(emit_statement . (identifier) @type) (emit_statement . (identifier) @type)
(revert_statement error: (identifier) @type)
(modifier_invocation (identifier) @function) (modifier_invocation (identifier) @function)
(call_expression . (member_expression property: (identifier) @function.method)) (call_expression . (member_expression property: (identifier) @function.method))
@ -223,6 +224,16 @@
"new" "new"
"++" "++"
"--" "--"
"+="
"-="
"*="
"/="
"%="
"^="
"&="
"|="
"<<="
">>="
] @operator ] @operator
[ [