Skip to content

Commit

Permalink
[language-java] Add highlights for variables…
Browse files Browse the repository at this point in the history
…when assigning, reassigning, or incrementing.

Also add `++` and `--` as operators.
  • Loading branch information
savetheclocktower committed Jan 28, 2024
1 parent 1f9ab20 commit a8215f1
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,13 @@
(identifier) @variable.parameter.lambda.java))

(variable_declarator
name: (identifier) @variable.other.assignment.java)
name: (identifier) @variable.other.declaration.java)

(assignment_expression
left: (identifier) @variable.other.assignment.java)

(update_expression
(identifier) @variable.other.assignment.java)

; PACKAGES
; ========
Expand Down Expand Up @@ -359,6 +363,8 @@
(binary_expression
["&" "|" "^" "~" "<<" ">>" ">>>"] @keyword.operator.bitwise.java)

["++" "--"] @keyword.operator.increment.java

"." @keyword.operator.accessor.dot.java
"::" @keyword.operator.accessor.method-reference.java

Expand Down

0 comments on commit a8215f1

Please sign in to comment.