mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 01:16:18 +04:00
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:
parent
855568fa34
commit
380c7adcc0
@ -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…
Reference in New Issue
Block a user