From 28aebb7308a3b3070d38d7041f692469b7f37e6c Mon Sep 17 00:00:00 2001 From: Vir Chaudhury Date: Sun, 21 Apr 2024 09:18:24 +0800 Subject: [PATCH] feat(astro): add backtick string injections This also updates a highlight to be more accurate and bumps the lockfile to fix a few bugs. --- lockfile.json | 2 +- queries/astro/injections.scm | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lockfile.json b/lockfile.json index 5cd54248a..12cdfab48 100644 --- a/lockfile.json +++ b/lockfile.json @@ -18,7 +18,7 @@ "revision": "afdc3d5da18d42cbb471c0f40527dbed9cace7ad" }, "astro": { - "revision": "1aab99ed2af477fe4283365226589908809a696d" + "revision": "506515c1dce4220fc9db278ce9eae2ad4e239cff" }, "authzed": { "revision": "1dec7e1af96c56924e3322cd85fdce15d0a31d00" diff --git a/queries/astro/injections.scm b/queries/astro/injections.scm index 4d868c58f..d4f15ba56 100644 --- a/queries/astro/injections.scm +++ b/queries/astro/injections.scm @@ -8,6 +8,10 @@ (attribute_js_expr) @injection.content (#set! injection.language "typescript")) +(attribute + (attribute_backtick_string) @injection.content + (#set! injection.language "typescript")) + (html_interpolation (permissible_text) @injection.content (#set! injection.language "typescript"))