[java] fix highlight for ":" after label, move operator to the end

This commit is contained in:
Chinmay Dalal 2020-08-17 05:32:28 +05:30 committed by GitHub
parent 792c87c209
commit 426b5a4eff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,47 +31,6 @@
name: (identifier) @attribute)
; Operators
[
"@"
"+"
"?"
":"
"++"
"-"
"--"
"&"
"&&"
"|"
"||"
"!="
"=="
"*"
"/"
"%"
"<"
"<="
">"
">="
"="
"-="
"+="
"*="
"/="
"%="
"->"
"^"
"^="
"&="
"|="
"~"
">>"
">>>"
"<<"
"::"
] @operator
; Types
(interface_declaration
@ -205,6 +164,9 @@
"."
","
] @punctuation.delimiter
(labeled_statement
(identifier)
(":") @punctuation.delimiter)
[
"["
@ -216,5 +178,47 @@
] @punctuation.bracket
; Labels
(labeled_statement
(identifier) @label)
; Operators
[
"@"
"+"
"?"
":"
"++"
"-"
"--"
"&"
"&&"
"|"
"||"
"!="
"=="
"*"
"/"
"%"
"<"
"<="
">"
">="
"="
"-="
"+="
"*="
"/="
"%="
"->"
"^"
"^="
"&="
"|="
"~"
">>"
">>>"
"<<"
"::"
] @operator