aboutsummaryrefslogtreecommitdiffstats
path: root/queries/java/highlights.scm
Commit message (Collapse)AuthorAgeFilesLines
* bot(lockfile): update apex, editorconfig, elixir, ledger, markdown, ↵nvim-treesitter-bot[bot]2024-12-021-3/+0
| | | | markdown_inline, sflog, soql, sosl, styled, swift, xresources
* feat(highlights): capture wildcard patterns as `@character.special` (#7153)Omar Valdez2024-09-201-0/+2
|
* feat(highlights): capture wildcard imports as `@character.special`Omar Valdez2024-08-011-0/+4
|
* fix(java): compact constructor highlights (#6531)Brayden Zee2024-05-021-0/+3
|
* feat: more `@keyword.type` capturesRiley Bruins2024-05-011-4/+7
|
* feat(java): add when operator (#6420)Guilherme Soares2024-04-091-0/+1
|
* refactor(format): drop extra indentation for fieldPhạm Huy Hoàng2024-03-211-3/+2
|
* feat(highlights)!: `@keyword.storage` → `@keyword.modifier`Jaehwang Jung2024-03-161-1/+1
|
* feat(highlights)!: keyword `@type.qualifier` → `@keyword.modifier`Jaehwang Jung2024-03-161-2/+2
|
* chore: query formattingPham Huy Hoang2024-01-191-39/+59
|
* feat!: align standard captures with upstreamChristian Clason2024-01-191-16/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Sharing highlight queries with upstream tree-sitter and Helix is difficult. Solution: Where reasonable, use capture names in tree-sitter's standard list or Helix's Atom-style hierarchy. Specifically: * tree-sitter "standard capture names" (https://github.com/tree-sitter/tree-sitter/blob/3f44b896852eb7daaa6df4fb778c9bb52c70c815/highlight/src/lib.rs#L20-L72): - `@parameter` -> `@variable.parameter` - `@field` -> `@variable.member` - `@namespace` -> `@module` - `@float` -> `@number.float` - `@symbol` -> `@string.special.symbol` - `@string.regex` -> `@string.regexp` - `@text.*` -> `@markup.*` (`strong`, `italic`, `link`, `strikethrough`; with exceptions; see below) - `@text.title` -> `@markup.heading` - `@text.literal` -> `@markup.raw` - `@text.reference` -> `@markup.link` - `@text.uri` -> `@markup.link.url` (in markup links) - `@string.special` -> `@markup.link.label` (non-url links) - `@punctuation.special` -> `@markup.list` (markdown lists only; move subitems from `@text.todo`) * Helix captures (https://docs.helix-editor.com/master/themes.html#syntax-highlighting): - `@method` -> `@function.method` - `@method.call` -> `@function.method.call` - `@text.{todo,warning,note,danger}` -> `@comment.{error,warning,hint,info,todo}` - `@text.diff.{add,delete,}` -> `@diff.{plus,minus,delta}` - `@text.uri` -> `@string.special.url` (outside markup) - `@preproc` -> `@keyword.directive` - `@define` -> `@keyword.directive`(`.define`?) - `@storageclass` -> `@keyword.storage` - `@conditional` -> `@keyword.conditional` - `@debug` -> `@keyword.debug` - `@exception` -> `@keyword.exception` - `@include` -> `@keyword.import` - `@repeat` -> `@keyword.repeat` * cleanup - remove some redundant `@conceal` (but still allow it for conceal-only patterns) - remove obsolete `@error` (syntax linting is out of scope for this repo) - sort, cleanup capture list in `CONTRIBUTING.md`
* fix(java): move attributes after constantsObserverOfTime2023-12-041-9/+9
|
* feat(java): highlight `var` as `@type.builtin`Ibrahim Delice2023-10-131-0/+2
|
* fix(java): move @ to `@attribute`Ibrahim Delice2023-10-131-1/+2
|
* java(highlights): add missing import class pattern (#5483)Pham Huy Hoang2023-10-061-2/+2
|
* feat(java): add highlights to string interpolationPham Huy Hoang2023-08-181-0/+2
|
* java highlights: annotation type declaration and AT interface keywordhomedirectory2023-06-211-0/+3
|
* fix(java): capture type parameter brackets as `@punctuation.delimiter`Iron-E2023-05-041-0/+3
| | | It is currently highlighted as `@operator`
* feat: add `@comment.documentation` where applicableAmaan Qureshi2023-03-051-0/+9
|
* feat(java): distinguish escape sequences, move certain keywords to more ↵Amaan Qureshi2023-02-231-127/+131
| | | | appropriate places
* highlights(java): fix '!',param,global groupJosef Litoš2022-12-191-2/+5
|
* highlights: create subscoping for ternary operatorStephan Seitz2022-12-021-1/+1
| | | | | | | | | | After https://github.com/nvim-treesitter/nvim-treesitter/issues/470, we decided to use `@conditional` for ternary operator instead of operator despite `@conditional` is documented for keywords only. A sub-scoping can make it easier for people to highlight this operator group differently. Also unify the usage of `@conditional...` across languages.
* highlights(java): use more specific groupsObserverOfTime2022-11-261-13/+24
|
* feat(spell): support more languagesLewis Russell2022-09-261-1/+1
|
* highlights(java): add "non-sealed" keywordStephan Seitz2022-08-231-0/+1
|
* Modified queries/java/highlights.scmanthony-S932022-08-221-0/+2
|
* Split func/method definition from calls in several programming language querieslfenzo2022-08-031-1/+1
|
* highlights(java): add support for `text_block`sStephan Seitz2022-04-161-1/+1
|
* feat(java)(highlights): add missing highlights for `@type`captainko2022-01-181-0/+6
|
* highlights/injections/indents(java): comment -> line_comment,block_commentStephan Seitz2022-01-161-1/+4
| | | | Ref https://github.com/tree-sitter/tree-sitter-java/pull/93
* Prefer lua-match over matchLewis Russell2021-11-231-3/+3
| | | | as string.find is much quicker than vim.regex:match*
* feat(keywords) merge return and yield into keyword.return groupantonk522021-07-041-4/+1
|
* feat(keywords) add keyword.return & keyword.yieldantonk522021-07-041-2/+8
|
* highlights(java): add new keyword "yield"Stephan Seitz2021-04-171-0/+1
| | | | | https://github.com/tree-sitter/tree-sitter-java/pull/78 added support for enhanced switch statements
* Add support for Java recordsStephan Seitz2021-04-101-0/+3
| | | | Ref: https://github.com/tree-sitter/tree-sitter-java/pull/73
* highlights(java): Highlight fields (members and member access) (#1107)Stephan Seitz2021-03-261-0/+8
|
* highlights(java): Highlight spread parametersStephan Seitz2021-02-191-1/+5
|
* highlights(java): fix constant highlighting (only UPPERCASE_LETTERS)Stephan Seitz2021-02-191-1/+1
|
* TernaryChinmay Dalal2020-11-191-1/+2
|
* Add @keyword.operator for operators that are English words and add ↵Stephan Seitz2020-09-191-6/+14
| | | | @exception for Java/JS
* Fix #307: Use and document TSVariable/TSVariableBuiltin in all languagesStephan Seitz2020-09-141-2/+5
|
* fix(queries): use vim-match for non lua regexesSteven Sojka2020-08-161-1/+1
|
* [java] Add label highlightChinmay Dalal2020-08-161-0/+4
|
* Java highlights/locals: Add catch_formal_parameterStephan Seitz2020-07-271-0/+2
|
* Java highlights: Add highlight for thisStephan Seitz2020-07-271-1/+1
|
* Java highlights: Add binary integer literalsStephan Seitz2020-07-011-0/+1
|
* Java highlights: Add operators ":" "?"Stephan Seitz2020-06-301-0/+2
|
* Java highlights: Add parameter highlight for single-parameter lambdasStephan Seitz2020-06-301-1/+4
|
* Add method reference operatorChinmay Dalal2020-06-291-0/+1
|
* Java highlights: Capture parameters in declaration (#93)Chinmay Dalal2020-06-291-31/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Capture parameters in declaration * Refactor (new syntax) * Fix spaces * Fix capture (java method parameters) * Improve java parameter capture * Fix bracket and whitespace * Fix java query * Fix java query Co-authored-by: Thomas Vigouroux <39092278+vigoux@users.noreply.github.com> * Add capture for lambda parameters, remove redundant captures, add -> operator * Previous commit wasn't saved properly * Fix formatting * Changes suggested in PR https://github.com/nvim-treesitter/nvim-treesitter/pull/93#pullrequestreview-435630553 * Add bitwise operators * Re-add builtin operators * remove left shift, add ^= * Add &= and |= * remove @variable * Remove duplicate Co-authored-by: Thomas Vigouroux <39092278+vigoux@users.noreply.github.com>