Unnamed repository; edit this file 'description' to name the repository.
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
Valentin B 2024-05-14
parent 855568f · commit 380c7ad
-rw-r--r--runtime/queries/solidity/highlights.scm11
1 files changed, 11 insertions, 0 deletions
diff --git a/runtime/queries/solidity/highlights.scm b/runtime/queries/solidity/highlights.scm
index fcc8d3e3..73f354a2 100644
--- a/runtime/queries/solidity/highlights.scm
+++ b/runtime/queries/solidity/highlights.scm
@@ -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
[