Commit Graph

181 Commits (1ef653f0e5e722b28957b6095b66b9bd81814473)

Author SHA1 Message Date
Rich Harris b83afb0528
await...then shorthand - fixes #957
7 years ago
Rich Harris 0d42ff84db fix tests, finish renaming stuff
7 years ago
Rich Harris e238c65a15 rename :Switch -> :Component
7 years ago
Rich Harris dba32df84e client-side dynamic components mostly working (#640)
7 years ago
Rich Harris 4f991536d4 parse :Switch tags
7 years ago
Rich Harris 8a0813e96b SSR await-then-catch
7 years ago
Rich Harris d783993d23 halfway there
7 years ago
Rich Harris 908fe2ab7a parse await-then-catch
7 years ago
Rich Harris c9aa72313e throw error on illegal context (#934)
7 years ago
Rich Harris d590dbe165
Reinstate code coverage
7 years ago
Jacob Mischka 5d27d3fda7
Add array destructuring for each contexts
7 years ago
Rich Harris 5b3e8cd88f support nested <slot> elements
7 years ago
Rich Harris a023346c91 validation
7 years ago
Rich Harris 7a8c8fd577 replace {{yield}} with <slot/>
7 years ago
Rich Harris d734a6b823 start work on <slot>
7 years ago
Rich Harris 82559c3775 support ref:foo as a CSS selector (#693)
8 years ago
Rich Harris aa59dafb81 more TS fixes
8 years ago
Rich Harris 51af8c29e0 event propagation shorthand for elements (#638)
8 years ago
Rich Harris 94166f60d8 remove unused code
8 years ago
Rich Harris c98e1f49d3 update parser tests
8 years ago
Rich Harris c4ad36023c move whitespace logic out of parse and into preprocess
8 years ago
Rich Harris d622bc3e47 use 31 instead of 33
8 years ago
Rich Harris 7a877b5857 use bitshifting for magic perf boost
8 years ago
Rich Harris 4b1f1e8392 TS-ify spaces.js and deindent.js, so they get included in prettier task
8 years ago
Rich Harris b0a1616e31 add trailing commas to prettier config, only run on .ts files
8 years ago
Rich Harris 84595fb381 run prettier on src, update tests
8 years ago
Rich Harris d752959ef1 change error message for invalid bindings
8 years ago
Rich Harris 5ccc200222 separate parsing rules for textareas
8 years ago
Rich-Harris 4d5107113e more TS
8 years ago
Rich-Harris 48384b846c typescriptify validator
8 years ago
Rich-Harris 7c3fca57cf more typescript conversion
8 years ago
Rich-Harris 8d07a5f9bd gah, rollup needs the file extensions. which idiot wrote it
8 years ago
Rich-Harris e85bec00a2 add a few type annotations
8 years ago
Rich-Harris 13b87acfb9 remove .ts file extensions
8 years ago
Rich-Harris 1c5e6e7430 rename all (almost) .js files
8 years ago
Rich-Harris 366c490bcc switch a few more files over
8 years ago
Rich-Harris 0d7b16e4e8 some more html entity stuff, the bits i understand at least
8 years ago
Rich-Harris 2d8c34de39 add complete list of html entities
8 years ago
Rich-Harris 7f76ab24f9 Merge branch 'master' into gh-7
8 years ago
Conduitry a5dce59735 fix parsing of expressions wrapped in parentheses (#534)
8 years ago
Rich-Harris 53c5c32da3 allow parameter-less transitions
8 years ago
Rich-Harris 2784ae0ade parse transition directives
8 years ago
Rich-Harris 9f2bd988a0 collapse text around comments
8 years ago
Rich-Harris 75e8d6205e better error for bind:value="{{foo}}" - fixes #437
8 years ago
Rich-Harris 05ea031895 prevent unclosed <script> causing infinite loop
8 years ago
Rich-Harris 6e0d0b1a12 use a map to avoid false positives
8 years ago
Rich-Harris 6c754c2a3d special case literals
8 years ago
Conduitry eab3f62f25 try to parse expressions as javascript before interpreting them as an identifier (#424)
8 years ago
Rich Harris 3ead9bfc3f Merge branch 'master' into gh-371
8 years ago
Conduitry 7d03b74576 use maps and sets in many places instead of plain objects
8 years ago
Rich-Harris 979ac2b87d Merge branch 'master' into gh-371
8 years ago
Conduitry 168babe25b only do special reserved name handling when tag is all lowercase letters
8 years ago
Rich-Harris 4360a03ffd parse <:Window> tags
8 years ago
Rich Harris efce7acabe Merge pull request #385 from sveltejs/gh-383
8 years ago
Rich Harris 854a37c0d7 allow reserved words in tags e.g. {{class}} (#383)
8 years ago
Rich Harris e6d088d753 implement :shorthand attributes
8 years ago
Rich Harris 37eee7425f linting
8 years ago
Rich Harris 5866a99b9a treat binding values as expressions
8 years ago
Rich-Harris 71cfb93384 simplify JS parsing step
8 years ago
Rich Harris a362b436b2 Merge pull request #352 from sveltejs/gh-348
8 years ago
Rich-Harris ce6178d281 differentiate between nbsp and other whitespace (#348)
8 years ago
Rich Harris 8852e48d55 Merge pull request #349 from taylorzane/fix-raw-js-in-html
8 years ago
Conduitry ff815d2289 only process special tags (script, style) when they are top-level
8 years ago
Conduitry 52b3a43e7b accept DOCTYPE element in any case
8 years ago
Taylor Zane Glaeser e91e12906a Resolved an issue with raw Svelte JS in a script block breaking an HTML document.
8 years ago
Rich-Harris 60c9c7c281 <:Self> inside each-block
8 years ago
Rich-Harris 0f60242bb9 self-references (#51)
8 years ago
Rich-Harris e480103de0 better errors for malformed event handlers (#220)
8 years ago
Rich Harris 2efd532563 better error for unmatched closing tag (#321)
8 years ago
Rich Harris f85e343a9f more informative error message when elements/blocks are left open (#258)
8 years ago
Rich Harris 0f2f309ff6 handle implicitly closed elements
8 years ago
Rich Harris 3e6e5e5304 normalise CSS parse errors
8 years ago
Rich Harris 2d5fd6f3a5 work around some css-tree quirks
8 years ago
Rich Harris 27579cd668 include CSS AST in svelte.parse output
8 years ago
Matt Steitle 522f293766 dontThrowParseErrorOnDoctypeDeclaration: Adding additional specification for doctype tag matching
8 years ago
Rich-Harris fc977a2abe provide useful feedback on encountering void element closing tag
8 years ago
Rich-Harris 8340583fa1 parse @id for keyed each blocks (#81)
8 years ago
Rich-Harris e45b15c3da centralise voidElementNames
8 years ago
Rich Harris e016b200ef include filename in error/warning objects
8 years ago
Rich Harris bac02481b7 server-rendered CSS (#153)
8 years ago
Rich Harris 7684afb2f8 move files into src in preparation for SSR integration
8 years ago