aboutsummaryrefslogtreecommitdiffstats
path: root/queries/kotlin
Commit message (Collapse)AuthorAgeFilesLines
* feat!: drop modules, general refactor and cleanupChristian Clason2025-05-124-537/+0
|
* bot(lockfile): update c, comment, cpp, embedded_template, kotlin, latex, ↵nvim-treesitter-bot[bot]2024-08-191-1/+1
| | | | php, php_only, ruby, scala, templ
* feat(highlights): capture wildcard imports as `@character.special`Omar Valdez2024-08-011-0/+2
|
* refactor(queries): Remove quotes from properties in set! directiveOmar Valdez2024-07-281-4/+4
|
* feat: more `@keyword.type` capturesRiley Bruins2024-05-011-2/+5
|
* feat(highlights)!: keyword `@type.qualifier` → `@keyword.modifier`Jaehwang Jung2024-03-161-1/+1
|
* feat(format-scripts): linewrap predicates再生花2024-02-231-2/+12
| | | "format-ignore".kick()
* fix(kotlin): remove slow highlight and local pattern (#5954)Anthony Shi2024-02-062-10/+10
| | | | This is a parser bug that needs to be fixed; temporary workaround to remove the ~0.5s delay on opening highlight and locals queries.
* chore: format queriesPhạm Huy Hoàng2024-01-211-5/+5
|
* Fixup format (#5934)Phạm Huy Hoàng2024-01-201-0/+1
| | | | | | | * fix(format): newline between top-level field defs * fixup: newline between node and comment * fixup: optimize pattern
* fix(highlights): improve member/property distinctionObserverOfTime2024-01-191-3/+3
|
* chore: query formattingPham Huy Hoang2024-01-194-359/+304
|
* feat!: align standard captures with upstreamChristian Clason2024-01-191-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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`
* feat(injections): add printf format stringsObserverOfTime2024-01-191-0/+8
|
* feat(locals)!: switch to upstream capturesChristian Clason2024-01-191-14/+14
|
* fix(kotlin): improve highlightsObserverOfTime2023-11-101-12/+21
| | | | Co-authored-by: Anthony Shi <69449791+anthony-S93@users.noreply.github.com>
* chore(injections)!: update injection syntax to 0.9Pham Huy Hoang2023-08-121-23/+24
| | | | | | | | | 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
* kotlin: update parser and queriesSaleh Bakra'a2023-04-061-2/+3
| | | Update `queries/kotlin/locals.scm` to use the the newly exposed `function_value_parameters` node.
* feat(kotlin): update queries from upstream changesAmaan Qureshi2023-03-262-24/+19
|
* feat: add `@comment.documentation` where applicableAmaan Qureshi2023-03-051-3/+4
|
* feat!: add `@keyword.coroutine` captureAmaan Qureshi2023-03-031-1/+7
|
* docs: fix typosdundargoc2023-02-231-1/+1
|
* Update highlights.scmJosef Litoš2023-02-221-2/+2
|
* Update queries/kotlin/highlights.scmJosef Litoš2023-02-221-1/+1
| | | Co-authored-by: ObserverOfTime <chronobserver@disroot.org>
* feat(kotlin): improved highlight queriesJosefLitos2023-02-221-2/+5
|
* highlights(kotlin): fix function highlightsObserverOfTime2023-02-121-1/+5
|
* highlights(kotlin): package keyword and declarationAnanda Umamil2023-01-141-2/+2
|
* highlights(kotlin): use more specific groupsObserverOfTime2022-11-261-2/+5
|
* highlights: use @preproc where appropriateObserverOfTime2022-10-151-4/+3
|
* highlights(kotlin): add companion keywordObserverOfTime2022-10-151-0/+3
|
* feat(spell): support more languagesLewis Russell2022-09-261-0/+2
|
* Split func/method definition from calls in lotlin highlighting querieslfenzo2022-08-031-2/+2
|
* fix(kotlin): use _import for type capturesSal Bakraa2022-01-081-4/+4
|
* fix(kotlin): use @attribute instead of @annotationSal Bakraa2022-01-081-6/+6
|
* fix(kotlin): use correct node for when expression foldsSal Bakraa2022-01-081-1/+1
|
* fix(kotlin): fix typo in locals querySal Bakraa2022-01-081-1/+1
|
* feat(kotlin): include a folds and a locals querySal Bakraa2022-01-082-0/+100
|
* fix(kotlin): include regex in injections querySal Bakraa2022-01-081-0/+31
|
* fix(kotlin): update highlights query to match new parserSal Bakraa2022-01-081-161/+375
|
* Kotlin queries: Handle package statementsJoaquín León2021-09-181-0/+5
|
* New kotlin parserJoakker2021-09-151-157/+156
|
* Use `@keyword.function` consistentlySergio Alejandro Vargas2021-07-061-1/+1
|
* feat(keywords) merge return and yield into keyword.return groupantonk522021-07-041-3/+1
|
* feat(keywords) add keyword.return & keyword.yieldantonk522021-07-041-1/+4
|
* 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
* attribute in stead of annotationTormod Alf Try Tufteland2021-03-201-3/+3
|
* kotlin: updated parser, and added annotation highlight againTormod Alf Try Tufteland2021-03-201-4/+7
|
* Update Kotlin parserStephan Seitz2021-03-161-3/+4
|
* Add comment parser to highlight comment tags (#893)Santos Gallegos2021-03-121-0/+1
| | | Closes #236