diff options
| author | virchau13 <virchau13@hexular.net> | 2022-04-08 12:03:21 +0800 |
|---|---|---|
| committer | Kiyan <yazdani.kiyan@protonmail.com> | 2022-04-09 14:24:07 +0200 |
| commit | e3adb39586ef573fc048aeb341f3a9fb71754452 (patch) | |
| tree | 945fd8f98aefcfef673a5b338419552c75fb4718 | |
| parent | Update lockfile.json (diff) | |
| download | nvim-treesitter-e3adb39586ef573fc048aeb341f3a9fb71754452.tar nvim-treesitter-e3adb39586ef573fc048aeb341f3a9fb71754452.tar.gz nvim-treesitter-e3adb39586ef573fc048aeb341f3a9fb71754452.tar.bz2 nvim-treesitter-e3adb39586ef573fc048aeb341f3a9fb71754452.tar.lz nvim-treesitter-e3adb39586ef573fc048aeb341f3a9fb71754452.tar.xz nvim-treesitter-e3adb39586ef573fc048aeb341f3a9fb71754452.tar.zst nvim-treesitter-e3adb39586ef573fc048aeb341f3a9fb71754452.zip | |
feat: add curly interpolation support for astro
| -rw-r--r-- | queries/astro/highlights.scm | 2 | ||||
| -rw-r--r-- | queries/astro/injections.scm | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/queries/astro/highlights.scm b/queries/astro/highlights.scm index 95c2d544e..62e8ed247 100644 --- a/queries/astro/highlights.scm +++ b/queries/astro/highlights.scm @@ -1,3 +1,5 @@ ; inherits: html [ "---" ] @punctuation.delimiter + +[ "{" "}" ] @punctuation.special diff --git a/queries/astro/injections.scm b/queries/astro/injections.scm index 981dece31..8b68bee23 100644 --- a/queries/astro/injections.scm +++ b/queries/astro/injections.scm @@ -1,4 +1,7 @@ ; inherits: html ((frontmatter - (raw_text) @typescript)) + (raw_text) @typescript)) + +((interpolation + (raw_text) @tsx)) |
