diff options
author | 2021-03-25 00:00:22 -0700 | |
---|---|---|
committer | 2021-03-25 00:00:22 -0700 | |
commit | 30cccdf7154b6470e876464da9e412af10894dd5 (patch) | |
tree | 73ed40b30af23ba3e5b94070e478f3e2ca1670c0 /src/compiler/parse/state/fragment.ts | |
parent | a72ab10c623022860691d6a095b74dea70cc6f69 (diff) | |
download | astro-30cccdf7154b6470e876464da9e412af10894dd5.tar.gz astro-30cccdf7154b6470e876464da9e412af10894dd5.tar.zst astro-30cccdf7154b6470e876464da9e412af10894dd5.zip |
add component state, top-level await support (#26)
Diffstat (limited to 'src/compiler/parse/state/fragment.ts')
-rw-r--r-- | src/compiler/parse/state/fragment.ts | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/compiler/parse/state/fragment.ts b/src/compiler/parse/state/fragment.ts deleted file mode 100644 index 97398b227..000000000 --- a/src/compiler/parse/state/fragment.ts +++ /dev/null @@ -1,21 +0,0 @@ -import tag from './tag.js'; -import setup from './setup.js'; -import mustache from './mustache.js'; -import text from './text.js'; -import { Parser } from '../index.js'; - -export default function fragment(parser: Parser) { - if (parser.html.children.length === 0 && parser.match_regex(/^---/m)) { - return setup; - } - - if (parser.match('<')) { - return tag; - } - - if (parser.match('{')) { - return mustache; - } - - return text; -} |