@@ -91,6 +91,18 @@ export function embed(path: FastPath, _options: Options) {
9191 printSvelteBlockJS ( 'expression' ) ;
9292 printSvelteBlockJS ( 'key' ) ;
9393 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 ;
94106 case 'Element' :
95107 printJS ( parent , options . svelteStrictMode ?? false , false , false , 'tag' ) ;
96108 break ;
@@ -106,6 +118,18 @@ export function embed(path: FastPath, _options: Options) {
106118 case 'ConstTag' :
107119 printJS ( parent , false , false , true , 'expression' ) ;
108120 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 ;
109133 case 'EventHandler' :
110134 case 'Binding' :
111135 case 'Class' :
0 commit comments