aboutsummaryrefslogtreecommitdiffstats
path: root/queries/dart
Commit message (Collapse)AuthorAgeFilesLines
* feat!: drop modules, general refactor and cleanupChristian Clason2025-05-125-399/+0
|
* fix(dart): remove unused ruleAmaan Qureshi2024-10-161-1/+0
|
* fix(dart): more highlight coverage, import foldsRiley Bruins2024-10-082-13/+39
|
* feat: more `@keyword.type` capturesRiley Bruins2024-05-011-3/+6
|
* feat(highlights)!: keyword `@type.qualifier` → `@keyword.modifier`Jaehwang Jung2024-03-161-1/+1
|
* feat(format-scripts): linewrap predicates再生花2024-02-231-1/+3
| | | "format-ignore".kick()
* fix(format): fix nested grouping indentation (#6128)Phạm Huy Hoàng2024-02-181-3/+4
|
* fix(dart): replace slow indent with simpler strategyChristian Clason2024-01-251-5/+6
| | | | | | Pattern for dedenting else blocks is painfully slow (~20% of total test time), so replace with `@indent.auto` for the whole `if_statement` for now.
* chore: format queriesPhạm Huy Hoàng2024-01-211-1/+1
|
* 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
* chore: query formattingPham Huy Hoang2024-01-195-134/+134
|
* feat!: align standard captures with upstreamChristian Clason2024-01-191-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-8/+8
|
* refactor: Remove all `(ERROR) @error` capturesPham Huy Hoang2023-10-251-3/+0
| | | | | | | | | | | | As discussed in PR#5421, capturing `@error` is inconsistent, requiring deep nesting (or priority) in order to correctly have red backgrounds to it. Some queries has this capture, some don't. For consistency purposes, removing all of them is more preferable. For re-enabling error, either add `(ERROR) @error` or `(ERROR _ @error)` to your custom queries.
* feat(dart): add base, final & sealed class modifier highlightsnedia2023-09-191-0/+3
|
* fix(dart): update queries from upstreamAmaan Qureshi2023-08-241-2/+0
|
* chore(injections)!: update injection syntax to 0.9Pham Huy Hoang2023-08-121-1/+2
| | | | | | | | | 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
* feat(dart): improve locals query (#4922)David Zeng2023-06-091-6/+32
|
* fix(dart): update indents from upstream (#4924)Amaan Qureshi2023-06-071-1/+4
|
* perf: remove match where possibleAmaan Qureshi2023-04-211-3/+3
|
* fix(dart_indent): Fix dart case/default indentPham Huy Hoang2023-04-141-0/+10
| | | | | | | | | | add tests add tests for fallthrough case add more tests keep functional tests
* Revert "fix(dart): function argument indents is inconsistent"Robert Brunhage2023-04-131-2/+1
| | | | This reverts commit ac4020c70722337c326bf65b645b162ee6e1796b.
* fix(dart): function argument indents is inconsistentRobert Brunhage2023-04-111-1/+2
|
* fix(dart): try statement wouldn't indent (#4623)Robert Brunhage2023-04-101-0/+1
|
* use indent.X syntax for captures and properties of set directivesGeorge Harker2023-03-241-5/+5
| | | | | | | | update CONTRIBUTING.md adjust indents for bass fix doc capture comment
* feat: add `@comment.documentation` where applicableAmaan Qureshi2023-03-051-2/+2
|
* feat!: add `@keyword.coroutine` captureAmaan Qureshi2023-03-031-5/+8
|
* feat(dart): add foldsAmaan Qureshi2023-02-241-0/+15
|
* fix(dart): add `@indent_end` to } (#4167)SzeLamC2023-02-241-0/+4
| | | | | * fix dart indentation after } * add some simple test case
* docs: fix typosdundargoc2023-02-231-1/+1
|
* highlights(dart): use more specific groupsObserverOfTime2022-11-261-14/+24
|
* 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
|
* feat(dart): add function call expression highlightAkin Sowemimo2021-07-021-0/+6
| | | | | This is a work around since currently the upstream grammar does not support a call_expression
* feat(dart): add function call query (commented)Akin Sowemimo2021-07-011-0/+1
|
* feat(dart): add multiplicative_operatorAkin Sowemimo2021-07-011-0/+4
| | | | and fix conditional_assignable_selector
* fix: assignable selector was removed/hiddenAkin Sowemimo2021-06-061-2/+0
|
* feat(dart): add late & required keywordsAkin Sowemimo2021-05-191-0/+2
|
* fix: uppercase variables being highlighted as typeAkin Sowemimo2021-05-181-8/+11
|
* feat: replace match with any-ofAkin Sowemimo2021-05-181-1/+21
|
* fix: remove duplicate type identifier queriesAkin Sowemimo2021-05-181-4/+0
|
* feat(dart): add async/sync* to highlightsAkin Sowemimo2021-05-181-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
* Remove invalid dart queryStephan Seitz2021-03-161-2/+3
|
* Mark several invalid queriesStephan Seitz2021-03-161-2/+3
|
* Add comment parser to highlight comment tags (#893)Santos Gallegos2021-03-121-0/+1
| | | Closes #236
* feat(dart): add indentselianiva2021-03-081-0/+27
|
* [highlights] Add TSSymbol highlight groupDennis B2021-03-041-1/+1
| | | | | | | | | | | | | | Addresses issue #892 Ruby and Dart literal symbols will now be highlighted by the new TSSymbol highlight group, which itself will, by default, link to the Vim Identifier highlight group. Vim theme authors can then set their TSSymbol colors. Symbol highlighting can apply to a number of languages as noted in the following Wikipedia page: https://en.wikipedia.org/wiki/Symbol_(programming) Not just for Ruby and Dart.
* Dart: Highlight escape sequencesStephan Seitz2020-11-151-0/+2
|