Commit Graph

180 Commits (ea73930132b8185bed670409cc4fb245f44e78ad)

Author SHA1 Message Date
Timothy Johnson ef59c32099 Fixes #2714
8 years ago
mrkishi af85d14557
allow end tag omission in blocks
8 years ago
Rich Harris 5a536aafa2
Merge pull request #2658 from MikeMatrix/each-block-rest-destructuring
8 years ago
Michael Braun c477f50b9a Experimenting with array destructuring in each-blocks
8 years ago
Emil Tholin 7ec1bdb712 Don't show 'Empty block' warnings for non-existent await branches
8 years ago
Richard Harris ca0e5df0d8 update parser and js tests
8 years ago
Conduitry bee6fe7ebc require whitespace after `{@html` (#2154)
8 years ago
Richard Harris 6c85f6a6b5 change :elseif to :else if - fixes #2137
8 years ago
Richard Harris 3953c2dbfc error on invalid compiler options — closes #2094
8 years ago
Rich Harris 206a3d0131 update tests
8 years ago
Rich Harris 687e352209 rename .html files to .svelte
8 years ago
Conduitry a270661d20 rename `<svelte:meta>` to `<svelte:options>` (#2017)
8 years ago
Rich Harris b1d919f3f2
Overhaul stats — closes #1891
8 years ago
Conduitry f8d69e296f replace <svelte:document> with <svelte:body> (#1846)
8 years ago
Richard Harris 2eb881dcb6 prevent invalid svelte: tags - fixes #1948
8 years ago
Rich Harris 48f1f6b4d0
implement `bind:this`
8 years ago
Rich Harris f45e2b70fd
Implement reactive assignments (#1839)
8 years ago
Rich Harris 82b1b75afe implement event modifiers
8 years ago
Rich Harris 9e07e3f77f include solidus in attribute values - fixes #1772
8 years ago
Rich Harris bf50b47bb5 deprecate onerror - fixes #1745
8 years ago
Rich Harris 956f318bea while we're here, update parser output files
8 years ago
Rich Harris 4a88c9ccb5 remove -bundle files
8 years ago
Rich Harris 9031c16905
[WIP] Refactor, change where validation occurs (#1721)
8 years ago
James Birtles df4ca0103d fix test
8 years ago
Rich Harris 98e63b37e9 groundwork for animations (#1431)
9 years ago
Rich Harris b381aa63a4 integrate CLI - fixes #1360
9 years ago
Rich Harris 506ab3952e destructuring
9 years ago
Rich Harris 8dc17b77db allow arbitrary expressions in each block keys - fixes #703
9 years ago
Rich Harris 4c9ba2ef71 update parser tests
9 years ago
Rich Harris 5a457bfb87 rename loc to start, include character info in locations
9 years ago
Rich Harris 73e83e5571 tidy up
9 years ago
Rich Harris 286cabaf63 oops
9 years ago
Rich Harris 21168bf5f1 remove v1 parser tests
9 years ago
Rich Harris 35f4a1f063 add codes to errors
9 years ago
Rich Harris 7576d7dc93 update keyed each block syntax
9 years ago
Rich Harris 9bba8d18d1 implement dynamic components etc
9 years ago
Rich Harris cb514afde4 more tests, support svelte: elements
9 years ago
Rich Harris 258466ebbe attribute shorthand
9 years ago
Rich-Harris 90a372ebf3 brute force new keyed each block syntax
9 years ago
Rich-Harris cc0055cf82 update parser for v2
9 years ago
Rich-Harris eebd47d02b add v2 parser tests, handle single curly tags
9 years ago
Rich-Harris 416fc0c81b include spread with other attributes
9 years ago
Rich-Harris d0c696bb2b merge master -> mrkishi-spreadh
9 years ago
Jacob Wright 04f5d5c975 Adds actions to components
9 years ago
mrkishi b5102f4f1b Add spread -- rough idea
9 years ago
Rich Harris 39694c31c3 nicer error messages
9 years ago
Rich Harris f97036dd39 error if ref:foo has a value
9 years ago
Jacob Wright 6d4f8d889a Refactor directive parsing for code reuse
9 years ago
Rich Harris ff67b137c4 empty blocks are a dev warning, not an error
9 years ago
Rich Harris a4d08c205a error on unclosed comments and blocks with only whitespace
9 years ago
Christopher Pfohl b55ccc6d9f Make sure scripts are passing good data so it's only the parse that can go wrong
9 years ago
Christopher Pfohl c62f77a5d2 Empty Each Blocks should have consistent behavior.
9 years ago
Rich Harris 80c55b1e51 oops
9 years ago
Rich Harris a85b09ea97 handle wacky identifier names in templates
9 years ago
Rich Harris 20962f9d82 add option to disable two-way binding (#54)
9 years ago
Efthymis Sarmpanis e3b5f5250e Failing test for improper toString override in CompileError
9 years ago
Rich Harris 5904a647db
support dynamic import - closes #1003
9 years ago
Rich Harris 0d42ff84db fix tests, finish renaming stuff
9 years ago
Rich Harris 4f991536d4 parse :Switch tags
9 years ago
Rich Harris d783993d23 halfway there
9 years ago
Rich Harris 908fe2ab7a parse await-then-catch
9 years ago
Jacob Mischka 5d27d3fda7
Add array destructuring for each contexts
9 years ago
Rich Harris 7a8c8fd577 replace {{yield}} with <slot/>
9 years ago
Rich Harris 82559c3775 support ref:foo as a CSS selector (#693)
9 years ago
Rich Harris c98e1f49d3 update parser tests
9 years ago
Rich Harris c4ad36023c move whitespace logic out of parse and into preprocess
9 years ago
Rich Harris 135f626395 include ast in svelte.compile return value (#632)
9 years ago
Rich Harris 10ecd81734 prettierfy test files
10 years ago
Rich Harris d752959ef1 change error message for invalid bindings
10 years ago
Rich Harris 5ccc200222 separate parsing rules for textareas
10 years ago
Rich-Harris 53c5c32da3 allow parameter-less transitions
10 years ago
Rich-Harris 2784ae0ade parse transition directives
10 years ago
Rich-Harris 75e8d6205e better error for bind:value="{{foo}}" - fixes #437
10 years ago
Rich-Harris 05ea031895 prevent unclosed <script> causing infinite loop
10 years ago
Rich-Harris fc646925db make it easier to run parser tests solo
10 years ago
Rich-Harris 4360a03ffd parse <:Window> tags
10 years ago
Rich Harris efce7acabe Merge pull request #385 from sveltejs/gh-383
10 years ago
Rich Harris 854a37c0d7 allow reserved words in tags e.g. {{class}} (#383)
10 years ago
Rich Harris e6d088d753 implement :shorthand attributes
10 years ago
Rich Harris 5866a99b9a treat binding values as expressions
10 years ago
Rich-Harris 60ed068a59 move tests around to facilitate registering babel based on environment
10 years ago
Rich Harris a362b436b2 Merge pull request #352 from sveltejs/gh-348
10 years ago
Rich-Harris ce6178d281 differentiate between nbsp and other whitespace (#348)
10 years ago
Conduitry 63d9f058f3 fix test
10 years ago
Rich-Harris 0f60242bb9 self-references (#51)
10 years ago
Rich-Harris e480103de0 better errors for malformed event handlers (#220)
10 years ago
Rich Harris 2efd532563 better error for unmatched closing tag (#321)
10 years ago
Rich Harris f85e343a9f more informative error message when elements/blocks are left open (#258)
10 years ago
Rich Harris 0f2f309ff6 handle implicitly closed elements
10 years ago
Rich Harris 3e6e5e5304 normalise CSS parse errors
10 years ago
Rich Harris 2d5fd6f3a5 work around some css-tree quirks
10 years ago
Rich Harris 27579cd668 include CSS AST in svelte.parse output
10 years ago
Matt Steitle 1b16c02fe0 dontThrowParseErrorOnDoctypeDeclaration: Adding unit test for doctype tag
10 years ago
Rich-Harris fc977a2abe provide useful feedback on encountering void element closing tag
10 years ago
Rich-Harris 8340583fa1 parse @id for keyed each blocks (#81)
10 years ago
Rich-Harris a72955faa2 fix typo, disallow multiple style/script tags
10 years ago
Fabrice Weinberg 75cf9d16ce Make sure parser only allows unique attribute names
10 years ago
Rich Harris f5b78e406c Merge pull request #122 from sveltejs/each-else
10 years ago
Arpad Borsos 9187c2dd09
add parser support for raw mustache tags
10 years ago
Arpad Borsos fec55a1ccd
add each-else support to parser
10 years ago