aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* fix(query): properly apply predicate injectionsRiley Bruins2024-07-271-0/+27
| | | | | | I think these have been broken since the query parser update. Basically the inner node for the string content was preventing injections because include-children was not set.
* fix(php): correct line endingsChristian Clason2024-07-171-12/+12
|
* feat: add indentation queries for angularDennis van den Berg2024-07-175-0/+112
|
* fix(lua): indent functions before they are closedRiley Bruins2024-07-162-0/+3
| | | | Fixes #6786
* feat(python): Improved python indentation (#6859)Grace Petryk2024-07-162-0/+46
| | | | | | | | | | | | | * feat: improve python indentation * use lua-match * revert concatenated_string changes, handle function def hanging indents * lint * add delimiters to param query * add test cases
* fix(php): do not indent after class/enum decl再生花2024-07-092-0/+17
|
* feat(nix): indentation queriesRiley Bruins2024-07-053-0/+304
|
* fix(ecma): indent single-line if statements (#6846)Riley Bruins2024-07-042-0/+8
| | | Fixes #5898.
* fix(r): resolve highlight regressionsRiley Bruins2024-06-291-3/+4
|
* fix(r): adapt indent queriesPhạm Huy Hoàng2024-06-281-6/+3
| | | | | | | - Anchor parameter query. There's no need for multiple indent.align captures - Narrow down binary_operator indent.begin. From tree-sitter-r corpus and highlight tests, this seems to be appropriate.
* feat(r)!: update parser and queriesChristian Clason2024-06-272-8/+8
|
* fix(gleam): remove incorrect builtin highlight (#6757)Louis Pilfold2024-06-172-10/+10
|
* test: fix tests broken after 0.10 update (#6714)Riley Bruins2024-06-012-9/+10
|
* fix: adapt to Nvim 0.11 deprecationsChristian Clason2024-05-171-1/+1
|
* feat(php): add highlights for scoped_property_accessCaleb White2024-05-141-0/+3
|
* fix(haskell): update queries and tests for rewritten parser (#6580)Marc Jakobi2024-05-072-9/+21
|
* feat: more `@keyword.type` capturesRiley Bruins2024-05-019-18/+18
|
* fix(php): parameter and operator touch-upsRiley Bruins2024-04-252-2/+2
|
* fix(wing): update to new repo (#6446)Mark McCulloh2024-04-141-1/+1
|
* fix(julia): adapt queries to grammar changes (#6429)Sergio A. Vargas2024-04-141-1/+1
|
* Revert "ci(tests): drop flaky wing parser tests"Christian Clason2024-04-142-0/+23
| | | | | | This reverts commit f08a9d97f7a2ac02115a5c1c8e3973b2634d996b. (Fixed by skipping bindings when generating.)
* feat(t32): update queries from upstream (#6440)Christoph Sax2024-04-141-1/+3
| | | | Adds support for new node type `elif_block`.
* ci(tests): drop flaky wing parser testsChristian Clason2024-04-132-23/+0
|
* feat(nix): misc cleanups + comment injection (#6418)Riley Bruins2024-04-091-0/+5
| | | | | | | | | * fix(nix): highlight strings within interpolations * feat(nix): move `derivation` to function.builtin * fix(nix): removes all `priority` workarounds * feat(nix): arbitrary injections using `#` comments
* fix(rust): indentation in multi-line tuple pattern (#6402)ganhaque2024-04-041-0/+8
| | | | | * fix(rust): indentation in multi-line tuple pattern * test(indent): rust - add test for tuple pattern indent
* chore(php): trim down testsCaleb White2024-03-274-153/+3
|
* fix(php): fix use_{as,instead_of}_clause highlightsCaleb White2024-03-271-3/+14
|
* feat(php): add highlight testsCaleb White2024-03-274-0/+250
|
* Update Clojure highlights to be metadata aware (#6213)Noah2024-03-191-4/+66
|
* feat(php): improve indents in return statements & chained methodsCaleb White2024-03-162-0/+104
|
* feat(highlights)!: `@keyword.storage` → `@keyword.modifier`Jaehwang Jung2024-03-161-2/+2
|
* feat(highlights)!: keyword `@type.qualifier` → `@keyword.modifier`Jaehwang Jung2024-03-167-18/+18
|
* feat(dot): add indents queriesLuckas2024-03-152-0/+33
| | | | | | | * feat(dot): add indents queries * add: tests * fix: test
* feat(swift): add init/deinit indents再生花2024-03-132-4/+6
| | | | Signed-off-by: Phạm Huy Hoàng <hoangtun0810@gmail.com>
* feat(swift): add will/didSet indentPhạm Huy Hoàng2024-03-042-2/+6
| | | | Fixes CI error in PR.6237
* feat(highlights)!: enforce documented captures (#6232)Christian Clason2024-03-031-2/+2
| | | | | | | | | | | | | | | Problem: Allowing undocumented "secret" (sub)captures makes it harder to write comprehensive colorschemes and catch inconsistent captures. Solution: Only allow captures listed in CONTRIBUTING.md. Add useful (cross-language) subcaptures and drop language-specific or too niche ones. Follow-up: Adding further `*.builtin` captures and changing queries to use them. Language-specific subcaptures should instead be added in user config or a custom language plugin.
* feat(query): indents that reflect the formatter (#6154)Riley Bruins2024-02-213-1/+67
| | | | | * feat(query): indents that reflect the formatter Indentation queries that reflect the query formatter. Only applicable if `lispoptions=expr:1`
* fix(python): better try-except indentation (#6097)Riley Bruins2024-02-152-0/+8
|
* fix(yuck): comment out start-of-line parensPhạm Huy Hoàng2024-02-132-0/+36
|
* feat(latex): pre-compiled header highlights, testsRiley Bruins2024-02-061-0/+33
| | | | | Also moves comment highlights to the very end to make them more future-proof.
* feat(meson): add indents.scmJędrzej Boczar2024-01-209-0/+147
|
* fix(highlights): improve member/property distinctionObserverOfTime2024-01-195-18/+18
|
* feat!: align standard captures with upstreamChristian Clason2024-01-1945-256/+256
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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`
* chore(tests): consistent capturesChristian Clason2024-01-1960-873/+872
|
* fix(cpp): incorrect indent of class with opening { on new line (#5811)Jędrzej Boczar2023-12-221-0/+9
|
* feat(haskell): tweak highlightsMarc Jakobi2023-11-181-0/+5
| | | | | * add cases for `qualified_variable` * add function defined in terms of composition
* fix(wing): update parser and queries, add maintainer (#5671)Mark McCulloh2023-11-131-2/+2
|
* injections(vue): inject typescript instead of js (#5577)Pham Huy Hoang2023-11-061-2/+2
| | | | | | | Interpolations (`{{valid js code}}`) and directive attributes (`<element :directive="valid js code"`) can also be typescript code, hence we can inject typescript instead of javascript here and still be ok with highlights (bar some syntax differences between ts and js)
* Add more tests for assignmentsRonan Arraes Jardim Chagas2023-10-291-2/+12
|
* Improve curly expression alignmentRonan Arraes Jardim Chagas2023-10-291-0/+15
|