Skip to content

Commit

Permalink
feat(solidity): add missing operators for highlights (helix-editor#10757
Browse files Browse the repository at this point in the history
)

* 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 466f383.

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

* feat(solidity): more precise matching for revert statements
  • Loading branch information
beeb committed May 14, 2024
1 parent 855568f commit 380c7ad
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions runtime/queries/solidity/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -223,6 +224,16 @@
"new"
"++"
"--"
"+="
"-="
"*="
"/="
"%="
"^="
"&="
"|="
"<<="
">>="
] @operator

[
Expand Down

0 comments on commit 380c7ad

Please sign in to comment.