You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/compiler/parse/state/fragment.js

16 lines
261 B

import tag from './tag.js';
import mustache from './mustache.js';
import text from './text.js';
export default function fragment ( parser ) {
if ( parser.match( '<' ) ) {
return tag;
}
if ( parser.match( '{{' ) ) {
return mustache;
}
return text;
}