From 91e6f7841cce61fc7eae5ed00945082c4ee17663 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Mon, 8 Apr 2024 20:54:35 +0100 Subject: [PATCH] Add operators highlighting --- queries/highlights.scm | 4 ++++ test/highlight/operators.bp | 8 ++++++++ 2 files changed, 12 insertions(+) create mode 100644 test/highlight/operators.bp diff --git a/queries/highlights.scm b/queries/highlights.scm index 32c157a..20424ec 100644 --- a/queries/highlights.scm +++ b/queries/highlights.scm @@ -3,6 +3,10 @@ (block_comment) ] @comment +; Operators {{{ +(operator) @operator +; }}} + ; Literal {{{ (boolean_literal) @boolean diff --git a/test/highlight/operators.bp b/test/highlight/operators.bp new file mode 100644 index 0000000..33d9581 --- /dev/null +++ b/test/highlight/operators.bp @@ -0,0 +1,8 @@ +foo = bar +// ^ operator + +foo += 1 +// ^ operator + +foo = -1 + 2 +// ^ operator