aboutsummaryrefslogtreecommitdiffstats
path: root/queries/java/locals.scm
diff options
context:
space:
mode:
authorStephan Seitz <stephan.seitz@fau.de>2021-04-10 02:46:11 +0200
committerStephan Seitz <stephan.lauf@yahoo.de>2021-04-10 12:27:54 +0200
commit7e9e8f2af9d603c05fe36a467659db1053cf90b5 (patch)
tree6315f6cd6c6a1de6ff7e00dd2373f020b74ea3cd /queries/java/locals.scm
parentUpdate lockfile.json (diff)
downloadnvim-treesitter-7e9e8f2af9d603c05fe36a467659db1053cf90b5.tar
nvim-treesitter-7e9e8f2af9d603c05fe36a467659db1053cf90b5.tar.gz
nvim-treesitter-7e9e8f2af9d603c05fe36a467659db1053cf90b5.tar.bz2
nvim-treesitter-7e9e8f2af9d603c05fe36a467659db1053cf90b5.tar.lz
nvim-treesitter-7e9e8f2af9d603c05fe36a467659db1053cf90b5.tar.xz
nvim-treesitter-7e9e8f2af9d603c05fe36a467659db1053cf90b5.tar.zst
nvim-treesitter-7e9e8f2af9d603c05fe36a467659db1053cf90b5.zip
Add support for Java records
Ref: https://github.com/tree-sitter/tree-sitter-java/pull/73
Diffstat (limited to 'queries/java/locals.scm')
-rw-r--r--queries/java/locals.scm4
1 files changed, 4 insertions, 0 deletions
diff --git a/queries/java/locals.scm b/queries/java/locals.scm
index 992532c5d..45aec390a 100644
--- a/queries/java/locals.scm
+++ b/queries/java/locals.scm
@@ -3,6 +3,8 @@
(program) @scope
(class_declaration
body: (_) @scope)
+(record_declaration
+ body: (_) @scope)
(enum_declaration
body: (_) @scope)
(lambda_expression) @scope
@@ -42,6 +44,8 @@
(identifier) @definition.namespace)
(class_declaration
name: (identifier) @definition.type)
+(record_declaration
+ name: (identifier) @definition.type)
(enum_declaration
name: (identifier) @definition.enum)
(method_declaration