Skip to content

Commit

Permalink
highlighting: Highlight operators
Browse files Browse the repository at this point in the history
  • Loading branch information
obiwac committed Sep 9, 2024
1 parent 32dba3d commit 21f83e0
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions queries/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,34 @@

; declarations

(var_decl name: (identifier) type: (type) @variable)
(function_declaration name:
[
(identifier)
(overloadable_operator)
] @function
)
(class_declaration name: (identifier) @function)
(class_declaration name: (identifier) @class)

; operators

; [
; "+"
; ] @operator
[
"**"
"*"
"/"
"%"
"+"
"-"
"=="
"!="
"<"
">"
"<="
">="
"&&"
"||"
"^^"
] @operator

; keywords

Expand Down

0 comments on commit 21f83e0

Please sign in to comment.