@@ -91,6 +91,18 @@ export function embed(path: FastPath, _options: Options) {
91
91
printSvelteBlockJS ( 'expression' ) ;
92
92
printSvelteBlockJS ( 'key' ) ;
93
93
break ;
94
+ case 'SnippetBlock' :
95
+ // We merge the two parts into one expression, which future-proofs this for template TS support
96
+ if ( node === parent . expression ) {
97
+ parent . expression . end =
98
+ options . originalText . indexOf (
99
+ ')' ,
100
+ parent . context ?. end ?? parent . expression . end ,
101
+ ) + 1 ;
102
+ parent . context = null ;
103
+ printSvelteBlockJS ( 'expression' ) ;
104
+ }
105
+ break ;
94
106
case 'Element' :
95
107
printJS ( parent , options . svelteStrictMode ?? false , false , false , 'tag' ) ;
96
108
break ;
@@ -106,6 +118,18 @@ export function embed(path: FastPath, _options: Options) {
106
118
case 'ConstTag' :
107
119
printJS ( parent , false , false , true , 'expression' ) ;
108
120
break ;
121
+ case 'RenderTag' :
122
+ // We merge the two parts into one expression, which future-proofs this for template TS support
123
+ if ( node === parent . expression ) {
124
+ parent . expression . end =
125
+ options . originalText . indexOf (
126
+ ')' ,
127
+ parent . argument ?. end ?? parent . expression . end ,
128
+ ) + 1 ;
129
+ parent . argument = null ;
130
+ printJS ( parent , false , false , false , 'expression' ) ;
131
+ }
132
+ break ;
109
133
case 'EventHandler' :
110
134
case 'Binding' :
111
135
case 'Class' :
0 commit comments