aboutsummaryrefslogtreecommitdiffstats
path: root/queries/java
diff options
context:
space:
mode:
authorObserverOfTime <chronobserver@disroot.org>2023-12-04 20:37:26 +0200
committerAmaan Qureshi <amaanq12@gmail.com>2023-12-04 20:41:28 -0500
commit3065a928fc134167f439230b01216e45198be715 (patch)
treeee813a8fcaa73e576e332fa8551d2da6e0acf6af /queries/java
parentUpdate parsers: elixir, qmljs, wing (diff)
downloadnvim-treesitter-3065a928fc134167f439230b01216e45198be715.tar
nvim-treesitter-3065a928fc134167f439230b01216e45198be715.tar.gz
nvim-treesitter-3065a928fc134167f439230b01216e45198be715.tar.bz2
nvim-treesitter-3065a928fc134167f439230b01216e45198be715.tar.lz
nvim-treesitter-3065a928fc134167f439230b01216e45198be715.tar.xz
nvim-treesitter-3065a928fc134167f439230b01216e45198be715.tar.zst
nvim-treesitter-3065a928fc134167f439230b01216e45198be715.zip
fix(java): move attributes after constants
Diffstat (limited to 'queries/java')
-rw-r--r--queries/java/highlights.scm18
1 files changed, 9 insertions, 9 deletions
diff --git a/queries/java/highlights.scm b/queries/java/highlights.scm
index ae498a159..27f139ec2 100644
--- a/queries/java/highlights.scm
+++ b/queries/java/highlights.scm
@@ -32,15 +32,6 @@
(lambda_expression
parameters: (identifier) @parameter) ; x -> ...
-; Annotations
-
-(annotation
- "@" @attribute
- name: (identifier) @attribute)
-(marker_annotation
- "@" @attribute
- name: (identifier) @attribute)
-
; Operators
[
@@ -135,6 +126,15 @@
(this) @variable.builtin
+; Annotations
+
+(annotation
+ "@" @attribute
+ name: (identifier) @attribute)
+(marker_annotation
+ "@" @attribute
+ name: (identifier) @attribute)
+
; Literals
(string_literal) @string