Commit graph

16 commits

Author SHA1 Message Date
Christian Clason
10dd49958c chore(tests): consistent captures 2024-01-19 16:58:37 +01:00
Pham Huy Hoang
80f66cdef1
injections(vue): inject typescript instead of js (#5577)
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)
2023-11-06 11:04:13 +09:00
Christian Segundo
dac6efbaff fix(dockerfile): bash injection on run instructions 2023-09-17 16:32:21 +02:00
Christian Segundo
831dbb619e fix(yaml): promql injections block 2023-09-15 12:53:44 +02:00
Michael Hoffmann
b64ea2ec44 feat(promql,yaml): add parser and yaml injections
Signed-off-by: Michael Hoffmann <mhoffm@posteo.de>
2023-07-18 03:03:11 -04:00
Lucario387
c7b9f68d03
feat(vue): add tsx/jsx injection queries (#4550)
* feat(vue): add tsx/jsx injection queries

- add a test

- style: format vue/injections.scm
2023-03-24 14:38:19 +00:00
Benny Powers
972da989bc test: ecma injections 2023-03-22 02:28:21 -04:00
Benny Powers
d228b51cd7 test: html injections 2023-03-22 02:28:21 -04:00
Pham Huy Hoang
d11dd552db injections(html): fix faulty css/js injections
Group queries to reduce duplicate injection tree

use only regex
2023-03-05 22:34:41 +02:00
lucario387
85d9534491
allow negative assertion in injection tests (#4107)
* tests(vue, svelte): strengthen tests

* fix(html, vue, svelte): fix wrong test format

* allow negative assertions in injection tests
2023-01-07 11:22:20 +01:00
Lucario387
28baed7698 refactor(svelte): Remove duplicated queries
These injection queries are defined already in html_tags, remove them

Signed-off-by: Pham Huy Hoang <hoangtun0810@gmail.com>
2023-01-03 12:05:10 +01:00
Lucario387
6f4b9b190b refactor(vue, html): Update injections
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>
2023-01-03 12:05:10 +01:00
Lucario387
f5d517f4a7 Fix(vue): Invalid match queries 2022-12-25 17:43:25 +01:00
Lucario387
bbd7ecb25d add test file 2022-12-25 14:58:33 +01:00
Stephan Seitz
881cb5b8f2 ci(injection tests): don't consider root language an injection 2021-12-20 18:16:45 +01:00
Stephan Seitz
a3862c9802 ci: add injection tests 2021-12-20 18:16:45 +01:00