diff --git a/extensions/svelte/extension.toml b/extensions/svelte/extension.toml index 56dfdc863a..5caa6c234a 100644 --- a/extensions/svelte/extension.toml +++ b/extensions/svelte/extension.toml @@ -12,4 +12,4 @@ language = "Svelte" [grammars.svelte] repository = "https://github.com/Himujjal/tree-sitter-svelte" -commit = "ea528fc9985aed8d93c9f438c185644a33d011af" +commit = "038dea960b58a88d3a8e916e81399d6bfed50ef8" diff --git a/extensions/svelte/languages/svelte/highlights.scm b/extensions/svelte/languages/svelte/highlights.scm index de873684e4..f4c5c48496 100755 --- a/extensions/svelte/languages/svelte/highlights.scm +++ b/extensions/svelte/languages/svelte/highlights.scm @@ -15,6 +15,7 @@ [ (text) (raw_text_expr) + (raw_text_each) ] @none [ diff --git a/extensions/svelte/languages/svelte/indents.scm b/extensions/svelte/languages/svelte/indents.scm index 886d8ca867..89082e1a50 100755 --- a/extensions/svelte/languages/svelte/indents.scm +++ b/extensions/svelte/languages/svelte/indents.scm @@ -3,6 +3,7 @@ (if_statement) (each_statement) (await_statement) + (snippet_statement) (script_element) (style_element) ] @indent diff --git a/extensions/svelte/languages/svelte/injections.scm b/extensions/svelte/languages/svelte/injections.scm index 02c8e81d70..24f9425803 100755 --- a/extensions/svelte/languages/svelte/injections.scm +++ b/extensions/svelte/languages/svelte/injections.scm @@ -69,3 +69,6 @@ ((raw_text_expr) @content (#set! "language" "javascript")) + +((raw_text_each) @content + (#set! "language" "javascript"))