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