aboutsummaryrefslogtreecommitdiffstats
path: root/queries/swift
Commit message (Collapse)AuthorAgeFilesLines
* feat!: drop modules, general refactor and cleanupChristian Clason2025-05-125-530/+0
|
* feat(swift): fold queriesRiley Bruins2024-09-191-0/+35
|
* feat(swift): add many missing highlightsRiley Bruins2024-09-191-46/+83
|
* feat: more comment injectionsRiley Bruins2024-06-151-0/+5
|
* feat(swift): highlight shebang linesColin Bruins2024-06-101-0/+2
|
* feat(predicates)!: rename `has-type` to `kind-eq` to align with HelixChristian Clason2024-06-021-1/+1
| | | | No point in having a different name for the same predicate.
* feat: more `@keyword.type` capturesRiley Bruins2024-05-011-5/+7
|
* fix(swift): highlightsWojciech Kulik2024-03-251-1/+18
|
* feat(highlights)!: keyword `@type.qualifier` → `@keyword.modifier`Jaehwang Jung2024-03-161-1/+1
|
* feat(swift): add init/deinit indents再生花2024-03-131-0/+18
| | | | Signed-off-by: Phạm Huy Hoàng <hoangtun0810@gmail.com>
* feat(swift): add will/didSet indentPhạm Huy Hoàng2024-03-041-0/+3
| | | | Fixes CI error in PR.6237
* chore: format queriesPhạm Huy Hoàng2024-01-211-2/+2
|
* 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-4/+4
|
* chore: query formattingPham Huy Hoang2024-01-193-104/+214
|
* refactor: manual pre-cleanupPham Huy Hoang2024-01-192-1/+2
| | | | | Moving comments, adding `format-ignore` to lines that will be better with it
* 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`
* feat(locals)!: switch to upstream capturesChristian Clason2024-01-191-3/+3
|
* feat(swift): update parser and queriesAlex Pinkus2023-09-101-1/+2
| | | Co-authored-by: Alex Pinkus <pinkus@amazon.com>
* feat(swift): improve highlightsGustavo Ordaz2023-08-181-1/+8
|
* refactor: add notes for swiftPham Huy Hoang2023-05-191-17/+22
| | | Also add enum_class_body
* feat: add swift indents (#4756)Pham Huy Hoang2023-05-081-0/+87
|
* feat: add `@comment.documentation` where applicableAmaan Qureshi2023-03-051-0/+9
|
* feat!: add `@keyword.coroutine` captureAmaan Qureshi2023-03-031-1/+5
|
* highlights(swift): fix capturesObserverOfTime2022-11-261-3/+5
|
* feat(swift): sync highlight queries with upstreamAlex Pinkus2022-10-101-2/+5
| | | | | | | | Upstream highlight queries have added support for Swift regex literals. This change brings that support to nvim-treesitter. Also includes some minor reordering of modifiers for logical consistency (no impact on highlighting behavior).
* feat(spell): support more languagesLewis Russell2022-09-261-2/+4
|
* highlights(swift): fix for_statement variable declarationAlex Pinkus2022-09-051-1/+1
| | | | | | Incorporates a fix from upstream, caught due to the emacs tree-sitter plugin using an older version of tree-sitter that does stricter validation.
* highlights(swift): add keywords "convenience", "required", "override"Stephan Seitz2022-08-161-0/+3
|
* highlights(swift): add keywords "actor", "nonisolated"Stephan Seitz2022-08-161-0/+2
| | | | Introduced in https://github.com/alex-pinkus/tree-sitter-swift/commit/07bdffb5e6f34fb1e578f31b653479d7c4d6306c
* Split func/method definition from calls in several programming language querieslfenzo2022-08-031-2/+2
|
* feat(swift): update parser and queries to 0.3.0 (#3035)Christian Clason2022-06-191-5/+11
| | | also port upstream query changes
* highlights(swift): add more `@operator`s and `implicit` keywordStephan Seitz2022-01-181-1/+17
|
* highlights(swift): highlight `"->"` as `@operator`Stephan Seitz2022-01-181-1/+2
|
* highlights(swift): highlight punctuationStephan Seitz2022-01-181-0/+3
| | | | | "?" is still missing: https://github.com/tree-sitter/tree-sitter-swift/issues/38
* highlight(swift): add upstream queriesChristian Clason2022-01-162-0/+148