Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/java/highlights.scm')
-rw-r--r--runtime/queries/java/highlights.scm87
1 files changed, 4 insertions, 83 deletions
diff --git a/runtime/queries/java/highlights.scm b/runtime/queries/java/highlights.scm
index 1f5da9c6..f049b8d2 100644
--- a/runtime/queries/java/highlights.scm
+++ b/runtime/queries/java/highlights.scm
@@ -1,5 +1,3 @@
-(identifier) @variable
-
; Methods
(method_declaration
@@ -15,6 +13,8 @@
(marker_annotation
name: (identifier) @attribute)
+"@" @operator
+
; Types
(interface_declaration
@@ -48,14 +48,13 @@
(void_type)
] @type.builtin
-(type_arguments
- (wildcard "?" @type.builtin))
-
; Variables
((identifier) @constant
(#match? @constant "^_*[A-Z][A-Z\\d_]+$"))
+(identifier) @variable
+
(this) @variable.builtin
; Literals
@@ -88,84 +87,6 @@
(line_comment) @comment
(block_comment) @comment
-; Punctuation
-
-[
- "::"
- "."
- ";"
- ","
-] @punctuation.delimiter
-
-[
- "@"
- "..."
-] @punctuation.special
-
-[
- "("
- ")"
- "["
- "]"
- "{"
- "}"
-] @punctuation.bracket
-
-(type_arguments
- [
- "<"
- ">"
- ] @punctuation.bracket)
-
-(type_parameters
- [
- "<"
- ">"
- ] @punctuation.bracket)
-
-; Operators
-
-[
- "="
- ">"
- "<"
- "!"
- "~"
- "?"
- ":"
- "->"
- "=="
- ">="
- "<="
- "!="
- "&&"
- "||"
- "++"
- "--"
- "+"
- "-"
- "*"
- "/"
- "&"
- "|"
- "^"
- "%"
- "<<"
- ">>"
- ">>>"
- "+="
- "-="
- "*="
- "/="
- "&="
- "|="
- "^="
- "%="
- "<<="
- ">>="
- ">>>="
-] @operator
-
; Keywords
[