Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions languages/java/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
name: (identifier) @type)

(annotation_type_declaration
name: (identifier) @type)
name: (identifier) @attribute)

(class_declaration
name: (identifier) @type)
Expand Down Expand Up @@ -139,11 +139,11 @@

; Annotations
(annotation
"@" @attribute
"@" @punctuation.special
name: (identifier) @attribute)

(marker_annotation
"@" @attribute
"@" @punctuation.special
name: (identifier) @attribute)

; Literals
Expand All @@ -167,7 +167,7 @@
(false)
] @boolean

(null_literal) @type
(null_literal) @constant.builtin

; Keywords
[
Expand All @@ -184,6 +184,7 @@
"permits"
"to"
"with"
"new"
] @keyword

[
Expand Down Expand Up @@ -212,8 +213,6 @@
"yield"
] @keyword

"new" @operator

; Conditionals
[
"if"
Expand Down Expand Up @@ -289,7 +288,7 @@
[
"\\{"
"}"
] @string.special.symbol)
] @punctuation.special) @embedded

; Exceptions
[
Expand Down