From 380c7adcc0e5eadeebb5f98991034bf68e010656 Mon Sep 17 00:00:00 2001 From: Valentin B <703631+beeb@users.noreply.github.com> Date: Tue, 14 May 2024 10:53:59 +0200 Subject: [PATCH] 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 --- runtime/queries/solidity/highlights.scm | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/runtime/queries/solidity/highlights.scm b/runtime/queries/solidity/highlights.scm index fcc8d3e31..73f354a25 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 [