diff options
| author | Ibrahim Delice <59118341+Delice0@users.noreply.github.com> | 2023-10-14 00:12:18 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-13 18:12:18 -0400 |
| commit | 0d5c611e3fd36353b11b412661ff4f07bcc8e5c6 (patch) | |
| tree | e84d588271a123eb754c03da95504239a45e8922 /queries/java | |
| parent | fix(java): move @ to `@attribute` (diff) | |
| download | nvim-treesitter-0d5c611e3fd36353b11b412661ff4f07bcc8e5c6.tar nvim-treesitter-0d5c611e3fd36353b11b412661ff4f07bcc8e5c6.tar.gz nvim-treesitter-0d5c611e3fd36353b11b412661ff4f07bcc8e5c6.tar.bz2 nvim-treesitter-0d5c611e3fd36353b11b412661ff4f07bcc8e5c6.tar.lz nvim-treesitter-0d5c611e3fd36353b11b412661ff4f07bcc8e5c6.tar.xz nvim-treesitter-0d5c611e3fd36353b11b412661ff4f07bcc8e5c6.tar.zst nvim-treesitter-0d5c611e3fd36353b11b412661ff4f07bcc8e5c6.zip | |
feat(java): highlight `var` as `@type.builtin`
Diffstat (limited to 'queries/java')
| -rw-r--r-- | queries/java/highlights.scm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/queries/java/highlights.scm b/queries/java/highlights.scm index a7e3af292..ae498a159 100644 --- a/queries/java/highlights.scm +++ b/queries/java/highlights.scm @@ -96,6 +96,8 @@ (constructor_declaration name: (identifier) @type) (type_identifier) @type +((type_identifier) @type.builtin + (#eq? @type.builtin "var")) ((method_invocation object: (identifier) @type) (#lua-match? @type "^[A-Z]")) |
