|
|
|
|
@ -146,24 +146,25 @@
|
|
|
|
|
// component-format-
|
|
|
|
|
[/(component-format)-(style)$/i, '$1#$2'],
|
|
|
|
|
[/(component-format)-(script)$/i, '$1#$2'],
|
|
|
|
|
[/(component-format)-(script-context-module)$/i, '$1#$2'],
|
|
|
|
|
[/(component-format)-(?:script)(?:-?(.*))$/i, '$1#$2'],
|
|
|
|
|
|
|
|
|
|
// template-syntax
|
|
|
|
|
[/template-syntax-((?:element|component)-directives)-?(.*)/i, '$1#$2'],
|
|
|
|
|
[/template-syntax-slot$/i, 'special-elements#slot'],
|
|
|
|
|
[/template-syntax-(?:slot)-?(.*)/i, 'special-elements#$1'],
|
|
|
|
|
[/template-syntax-(if|each|await|key)/i, 'logic-blocks#$1'],
|
|
|
|
|
[/template-syntax-(const|debug|html)/i, 'special-tags#$1'],
|
|
|
|
|
[/template-syntax-(if|each|await|key)$/i, 'logic-blocks#$1'],
|
|
|
|
|
[/template-syntax-(const|debug|html)$/i, 'special-tags#$1'],
|
|
|
|
|
// !!!! This one should stay at the bottom of `template-syntax`, or it may end up hijacking logic blocks and special tags
|
|
|
|
|
[/template-syntax-(.+)/i, 'template-syntax-basics#$1'],
|
|
|
|
|
|
|
|
|
|
// run-time
|
|
|
|
|
[/run-time-(svelte-(?:store|motion|transition|animate))-?(.*)/i, '$1#$2'],
|
|
|
|
|
[/run-time-(svelte-easing)/i, '$1'],
|
|
|
|
|
[/run-time-(svelte-easing)$/i, '$1'],
|
|
|
|
|
[/run-time-(client-side-component-api)-?(.*)/i, '$1#$2'],
|
|
|
|
|
[/run-time-(server-side-component-api)/i, '$1'],
|
|
|
|
|
[/run-time-(custom-element-api)/i, '$1'],
|
|
|
|
|
[/run-time-(svelte-register)/i, '$1'],
|
|
|
|
|
[/run-time-(server-side-component-api)$/i, '$1'],
|
|
|
|
|
[/run-time-(custom-element-api)$/i, '$1'],
|
|
|
|
|
[/run-time-(svelte-register)$/i, '$1'],
|
|
|
|
|
// Catch all, should be at the end or will include store, motion, transition and other modules starting with svelte
|
|
|
|
|
[/run-time-(svelte)(?:-(.+))?/i, '$1#$2'],
|
|
|
|
|
|
|
|
|
|
|