summaryrefslogtreecommitdiffstats
path: root/queries/java
Commit message (Collapse)AuthorAgeFilesLines
* 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: add DoxygenAmaan Qureshi2023-08-261-0/+4
|
* feat(java): add highlights to string interpolationPham Huy Hoang2023-08-181-0/+2
|
* chore(injections)!: update injection syntax to 0.9Pham Huy Hoang2023-08-121-2/+3
| | | | | | | | | Since 0.9, @lang syntax is still available as fallback but will soon be deprecated. Because of that, new syntax should be adopted once 0.9 becomes the baseline requirements for nvim-treesitter - update health check - update doc
* java highlights: annotation type declaration and AT interface keywordhomedirectory2023-06-211-0/+3
|
* feat: add indents for annotation defs (#4828)Pham Huy Hoang2023-06-041-9/+14
| | | | - Add indent for `@interface` and `@Annotation(...)` - Add notes for indent queries
* feat(java): add more foldable nodesGregg Jansen van Vüren2023-05-111-0/+2
|
* fix(java): capture type parameter brackets as `@punctuation.delimiter`Iron-E2023-05-041-0/+3
| | | It is currently highlighted as `@operator`
* feat(java): add basic folding (#4701)Pham Huy Hoang2023-04-241-0/+5
|
* use indent.X syntax for captures and properties of set directivesGeorge Harker2023-03-241-6/+7
| | | | | | | | update CONTRIBUTING.md adjust indents for bass fix doc capture comment
* fix: Java indent for multiple line arguments (#4449)Daniel Woznicki2023-03-061-1/+0
| | | | | | | | | * fix Java indent for multiple line arguments, fixes #4448, add an additional test for methods with arguments on multiple lines * Satisfy StyLua check --------- Co-authored-by: Daniel Woznicki <danwoz@nettoolkit.com>
* feat: add `@comment.documentation` where applicableAmaan Qureshi2023-03-051-0/+9
|
* feat(java): some instances of definition.var should be definition.parameterAmaan Qureshi2023-02-231-9/+21
|
* feat(java): distinguish escape sequences, move certain keywords to more ↵Amaan Qureshi2023-02-233-131/+136
| | | | 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
|
* Fixed incorrect Java indentation for method chainingDaniel Woznicki2022-04-041-1/+2
|
* Made block comment indent @auto so that new lines line up nicely with ↵Daniel Woznicki2022-03-011-1/+4
| | | | | | | | | | | | | | existing comment block Previous indentation: /** * */ New indentation: /** * */
* Added catchall (ERROR) @auto rule for Java to at least attempt something ↵Daniel Woznicki2022-03-011-0/+2
| | | | reasonable when the tree is in a broken state
* Modified Java indent rules to stop ignoring block comments because javadoc ↵Daniel Woznicki2022-03-011-1/+1
| | | | blocks were defaulting to indent 0
* Added fix for Java interfaces not being indented properlyDaniel Woznicki2022-03-011-0/+1
|
* Fixed a bug where indentation was not correct for class/enum bodies that had ↵Daniel Woznicki2022-02-251-2/+0
| | | | an annotation
* Fixed a bug where Java enum body indentation was not correctDaniel Woznicki2022-02-251-0/+2
| | | | Added test for Java enum indentation
* Added fix for incorrect Java indentation after a closing "}" in a method ↵Daniel Woznicki2022-02-251-0/+5
| | | | | | declaration Added tests for Java indentation, including one for issue 2571
* feat(java)(highlights): add missing highlights for `@type`captainko2022-01-181-0/+6
|
* highlights/injections/indents(java): comment -> line_comment,block_commentStephan Seitz2022-01-163-3/+6
| | | | Ref https://github.com/tree-sitter/tree-sitter-java/pull/93
* Update queriesSantos Gallegos2021-12-221-3/+2
| | | | | - Don't use the old form for predicates - Update some invalid queries
* 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
|
* Revert "Comment: use `@combined` to create just one tree per buffer (#1252)"Santos Gallegos2021-05-071-1/+1
| | | | This reverts commit 4a7a713c527f57c355bc817f16fc6d955b8cce9b.
* Comment: use `@combined` to create just one tree per buffer (#1252)Santos Gallegos2021-04-281-1/+1
| | | | | | | | | | | | * Comment: use `@combined` to create just one tree per buffer There is no need to create a tree per line/block for comments. Should fix https://github.com/nvim-treesitter/nvim-treesitter/issues/1251 * Add injections for scss * Fix jsonc * Combine jsdoc
* 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-102-0/+7
| | | | 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
|
* Add comment parser to highlight comment tags (#893)Santos Gallegos2021-03-121-0/+1
| | | Closes #236
* feat: use @ignore for comments and multiline stringselianiva2021-03-011-0/+2
|
* add formal_parameters elianiva2021-02-211-0/+1
| | | | | as suggested by p00f Co-authored-by: Chinmay Dalal <chinmay.dalal.22012001@gmail.com>
* feat: add java indentelianiva2021-02-211-0/+19
|
* highlights(java): Highlight spread parametersStephan Seitz2021-02-191-1/+5
|
* highlights(java): fix constant highlighting (only UPPERCASE_LETTERS)Stephan Seitz2021-02-191-1/+1
|