aboutsummaryrefslogtreecommitdiffstats
path: root/tests/query/injections
Commit message (Collapse)AuthorAgeFilesLines
* fix(nix): refactor nixosTest injections for better performance (#8378)Marc Jakobi4 days1-4/+4
|
* perf(nix): replace match with lua-matchMarc Jakobi7 days1-10/+18
|
* fix(python): regex injection not working for concatenated strings (#8197)Lev Velykoivanenko2025-10-262-0/+23
| | | Co-authored-by: Riley Bruins <ribru17@hotmail.com>
* feat(html): use gsub for mimetype lookupChristian Clason2025-05-121-3/+3
|
* feat!: track parser revision in LuaChristian Clason2025-05-121-1/+1
| | | | | | | | | | | Problem: Tracking parser revision in lockfile and allowing override through the parsers module complicates the code. In addition, only revision changes are handled robustly, not changes to other installation info. Solution: Track parser revision in the parsers module directly. Reload parser table on every install or update call. Support modifying parser table in a `User TSUpdate` autocommand.
* injections(nix): add nixosTest.testScript + home-manager nvim configMarc Jakobi2025-05-121-0/+70
| | | | | | (+ add Check to mkDerivation bash matches) (+ add Check to mkDerivation bash matches)
* 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
|
* feat(promql): do not use regex for string labels (#7669)Daniil Leontev2025-02-202-0/+24
| | | | | | | | | | | | | | | | | 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.
* feat(ruby): add injection for debugger command strings (#7480)Derek Stride2024-12-301-0/+11
|
* feat(http): more comprehensive highlightsRiley Bruins2024-11-221-0/+21
|
* 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.
* chore(tests): consistent capturesChristian Clason2024-01-199-64/+63
|
* 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)
* fix(dockerfile): bash injection on run instructionsChristian Segundo2023-09-171-0/+6
|
* fix(yaml): promql injections blockChristian Segundo2023-09-151-0/+7
|
* feat(promql,yaml): add parser and yaml injectionsMichael Hoffmann2023-07-181-0/+12
| | | | Signed-off-by: Michael Hoffmann <mhoffm@posteo.de>
* feat(vue): add tsx/jsx injection queries (#4550)Lucario3872023-03-241-0/+4
| | | | | | | * feat(vue): add tsx/jsx injection queries - add a test - style: format vue/injections.scm
* test: ecma injectionsBenny Powers2023-03-222-9/+9
|
* test: html injectionsBenny Powers2023-03-221-5/+38
|
* injections(html): fix faulty css/js injectionsPham Huy Hoang2023-03-052-0/+10
| | | | | | Group queries to reduce duplicate injection tree use only regex
* allow negative assertion in injection tests (#4107)lucario3872023-01-074-117/+48
| | | | | | | * tests(vue, svelte): strengthen tests * fix(html, vue, svelte): fix wrong test format * allow negative assertions in injection tests
* refactor(svelte): Remove duplicated queriesLucario3872023-01-031-0/+39
| | | | | | These injection queries are defined already in html_tags, remove them Signed-off-by: Pham Huy Hoang <hoangtun0810@gmail.com>
* refactor(vue, html): Update injectionsLucario3872023-01-031-0/+45
| | | | | | | Update html_tags injections so that html/vue/svelte parsers can use it without having a script/style tag being captured twice Signed-off-by: Pham Huy Hoang <hoangtun0810@gmail.com>
* Fix(vue): Invalid match queriesLucario3872022-12-251-7/+34
|
* add test fileLucario3872022-12-251-0/+41
|
* ci(injection tests): don't consider root language an injectionStephan Seitz2021-12-201-0/+2
|
* ci: add injection testsStephan Seitz2021-12-201-0/+32