diff options
author | Benjamin Streit | 2022-09-13 06:53:55 +0000 |
---|---|---|
committer | GitHub | 2022-09-13 06:53:55 +0000 |
commit | ffb41a94f040e251a3269e0d13417b16bef244c0 (patch) | |
tree | c85e69faf3a869ea5631c8ecf5af98087a9bc6dc /runtime/queries/astro | |
parent | 0d8ffa6b4ae8de827b24df9aaccc4a2e43465d58 (diff) |
feat: Syntax highlighting for Astro files (#3829)
Diffstat (limited to 'runtime/queries/astro')
-rw-r--r-- | runtime/queries/astro/highlights.scm | 3 | ||||
-rw-r--r-- | runtime/queries/astro/injections.scm | 9 |
2 files changed, 12 insertions, 0 deletions
diff --git a/runtime/queries/astro/highlights.scm b/runtime/queries/astro/highlights.scm new file mode 100644 index 00000000..3d0792b8 --- /dev/null +++ b/runtime/queries/astro/highlights.scm @@ -0,0 +1,3 @@ +; inherits: html + +["---"] @punctuation.delimiter diff --git a/runtime/queries/astro/injections.scm b/runtime/queries/astro/injections.scm new file mode 100644 index 00000000..e3cff178 --- /dev/null +++ b/runtime/queries/astro/injections.scm @@ -0,0 +1,9 @@ +; inherits: html + +((frontmatter + (raw_text) @injection.content) + (#set! injection.language "typescript")) + +((interpolation + (raw_text) @injection.content) + (#set! injection.language "tsx")) |