aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* More bash injection support for Taskfile (#7805)Mikkel Mondrup Kristensen2025-04-071-0/+9
|
* feat(yaml): inject bash for taskfiles (#7804)Anthony Fiddes2025-04-061-0/+15
|
* fix(python): highlight all types of docstrings (#7788)Jakob Zahn2025-04-031-0/+121
|
* fix(python): prioritize builtin functionsdcho2025-03-211-0/+3
|
* fix(python): don't highlight parameter name as builtin (#7732)Salomon Popp2025-03-132-4/+16
|
* fix(python): highlight function calls correctly (#7728)Salomon Popp2025-03-122-0/+35
|
* fix(python): don't highlight attribute name as builtin (#7712)Salomon Popp2025-03-111-0/+5
| | | | | | | | | | | | | | | * fix(python): don't highlight attribute name as builtin * fix(python): highlight `@variable.member` correctly for member access context * test: add test * test: expand test * docs: update comment * refactor: change order, remove priority override * style: remove extra newline
* feat(php): add support for new relative_name nodeCaleb White2025-02-262-27/+147
|
* feat(promql): do not use regex for string labels (#7669)Daniil Leontev2025-02-204-0/+67
| | | | | | | | | | | | | | | | | In Prometheus, label values are treated as strings when used with the `=` and `!=` operators, and as regular expressions when used with the `=~` and `!~` operators. Injecting and then highlighting all label values as regex leads to a situation where entirely valid **string** label values containing regex special characters are mistakenly parsed and highlighted as regex. This results in syntax errors, causing labels to be highlighted incorrectly. For example, in `foo{bar=~"[a-z]{1,3}"}`, `{` and `}` are regex special characters, so regex highlighting is expected. However, in `foo{path="/foo/{id}"}`, `{` and `}` are just part of the string and have no special meaning, so the whole value should be highlighted as a string.
* fix(php): properly highlight grouped imported functions and constantsCaleb White2025-01-021-0/+12
|
* feat(ruby): add injection for debugger command strings (#7480)Derek Stride2024-12-301-0/+11
|
* fix(julia): treat :: as operator in type contextsFredrik Ekre2024-11-231-3/+3
| | | | | | | | | | | | This patch captures `::` as `@operator` within `(unary_typed_expression)` and `(typed_expression)`. These should be the only two cases that the parser can emit when encountering `::` in the source, but as a fallback it is still captured as `@punctuation` in all other cases. The reasons for capturing `::` as an operator are i) the close relation with the other type-operators `<:` and `>:` and ii) the fact that it is treated as an operator by the Julia parser, just like `<:` and `>:`.
* feat(http): more comprehensive highlightsRiley Bruins2024-11-222-0/+54
|
* feat(python): highlight modulesOmar Valdez2024-11-211-1/+1
|
* fix(wgsl): indent call expression params (#7309)ganhaque2024-11-062-0/+31
|
* fix(wgsl): indent first parameter of function definitionRiley Bruins2024-11-062-1/+23
|
* feat(nu): add parser and queries (#7267)Abhishek Singh2024-11-057-0/+51
|
* feat: sway programming languageRiley Bruins2024-11-042-0/+365
|
* fix(rust): highlight parameters with ref in definitionRiley Bruins2024-11-031-0/+8
|
* feat(gleam,luau): use `@keyword.type` captures (#7181)Riley Bruins2024-09-261-3/+3
|
* feat(wing): add many missing highlightsRiley Bruins2024-09-021-2/+4
| | | | ...as well as some fold and injection queries.
* feat(php): php 8.4 support (#6741)Caleb White2024-08-183-0/+53
| | | | | | | | | * chore(php): update maintainers * feat(php): update php rules, highlight imported functions/consts * feat(php): indent inside property hooks * chore: update php and php_only revision
* fix(lua): proper indent after multiline string argRiley Bruins2024-08-052-0/+5
|
* fix(query): proper indentation after quantifiersRiley Bruins2024-08-022-1/+13
|
* fix: prevent double indent from pipesOliver Thomas2024-07-312-0/+4
|
* feat: add rescript parser and queries (#6671)Riley Bruins2024-07-274-0/+311
|
* 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