Commit Graph

181 Commits (cf095c4723e7b75a5ce660a4dfe366c32cf14c96)

Author SHA1 Message Date
Rich Harris f892389b00 no need to clone ast
8 years ago
Rich Harris 67e4a90f18 parse <slot> as element in custom element mode
8 years ago
Rich Harris ec50c5ec8c <svelte:head>
8 years ago
Rich Harris 577e28b8be svelte:component
8 years ago
Rich Harris 32774a821d more stuff
8 years ago
Rich Harris 9ff1beec48 WIP
8 years ago
Rich Harris fb9d7cdb28 remove obsolete hash stuff
8 years ago
Rich Harris 5a457bfb87 rename loc to start, include character info in locations
8 years ago
Rich Harris 07bad96719 tidy up
8 years ago
Rich Harris a2759604cb SSR tests
8 years ago
Rich Harris 7fe139feaa
Merge pull request #1340 from sveltejs/gh-474
8 years ago
Rich Harris 35f4a1f063 add codes to errors
8 years ago
Conduitry bed13d2147 in v2, don't parse for interpolations in non-root style elements (#1339)
8 years ago
Rich Harris 7576d7dc93 update keyed each block syntax
8 years ago
Rich Harris 9bba8d18d1 implement dynamic components etc
8 years ago
Rich Harris 7681939d3e fix head/window meta tags
8 years ago
Rich Harris cb514afde4 more tests, support svelte: elements
8 years ago
Rich Harris 31ee144b9c attribute shorthand
8 years ago
Rich Harris 258466ebbe attribute shorthand
8 years ago
Rich-Harris 90a372ebf3 brute force new keyed each block syntax
8 years ago
Rich-Harris cc0055cf82 update parser for v2
8 years ago
Rich-Harris eebd47d02b add v2 parser tests, handle single curly tags
8 years ago
Rich Harris 5d02b9e090
Merge pull request #1296 from sveltejs/fix-errors
8 years ago
Rich-Harris f6dd6edc9d fix CompileError constructor
8 years ago
Rich-Harris 416fc0c81b include spread with other attributes
8 years ago
Rich-Harris d0c696bb2b merge master -> mrkishi-spreadh
8 years ago
Jacob Wright 04f5d5c975 Adds actions to components
8 years ago
mrkishi b5102f4f1b Add spread -- rough idea
8 years ago
Rich Harris 39694c31c3 nicer error messages
8 years ago
Rich Harris f97036dd39 error if ref:foo has a value
8 years ago
Rich Harris bd74929920 dont treat :foo as a directive
8 years ago
Jacob Wright 6d4f8d889a Refactor directive parsing for code reuse
8 years ago
Rich Harris 1bc675da50 fix a couple of TODOs
8 years ago
Conduitry 8c1f09db1f upgrade acorn and parse as ES2018
8 years ago
Rich Harris b3049a6fa0
Merge pull request #1158 from sveltejs/gh-1156
8 years ago
Rich Harris bc6ee3ef9f increase test coverage, handle immediately-closed blocks
8 years ago
Rich Harris ff67b137c4 empty blocks are a dev warning, not an error
8 years ago
Conduitry 5d0f44ef41 rework handling of non-root <script> and <style>
8 years ago
Rich Harris a4d08c205a error on unclosed comments and blocks with only whitespace
8 years ago
Rich Harris 9fbcddf338 base stylesheet.hash on css content, and revert parsed.hash
8 years ago
Rich Harris df5a32a577 Merge branch 'issue-1091' of https://github.com/emilos/svelte into emilos-issue-1091
8 years ago
Rich Harris a85b09ea97 handle wacky identifier names in templates
8 years ago
Emil Ajdyna f9fc7c9e91 Base scoping hashes on CSS content rather than entire file
8 years ago
Conduitry c42e6f9d71 store <script> and <style> contents on Element node itself
8 years ago
Conduitry 41744e25fc parse non-top-level <script> and <style> tags as one piece of Text
8 years ago
Rich Harris 20962f9d82 add option to disable two-way binding (#54)
8 years ago
Alex Nozdriukhin 99c1f42821 Remove unnecessary 'const' assignment
8 years ago
Rich Harris 50654fab88 remove <:Document>, implement <:Head> on client-side
8 years ago
Rich Harris e57ddb0503 add new <:Document> meta-component
8 years ago
Rich Harris 5904a647db
support dynamic import - closes #1003
8 years ago
Rich Harris b83afb0528
await...then shorthand - fixes #957
8 years ago
Rich Harris 0d42ff84db fix tests, finish renaming stuff
8 years ago
Rich Harris e238c65a15 rename :Switch -> :Component
8 years ago
Rich Harris dba32df84e client-side dynamic components mostly working (#640)
8 years ago
Rich Harris 4f991536d4 parse :Switch tags
8 years ago
Rich Harris 8a0813e96b SSR await-then-catch
8 years ago
Rich Harris d783993d23 halfway there
8 years ago
Rich Harris 908fe2ab7a parse await-then-catch
8 years ago
Rich Harris c9aa72313e throw error on illegal context (#934)
8 years ago
Rich Harris d590dbe165
Reinstate code coverage
8 years ago
Jacob Mischka 5d27d3fda7
Add array destructuring for each contexts
8 years ago
Rich Harris 5b3e8cd88f support nested <slot> elements
8 years ago
Rich Harris a023346c91 validation
8 years ago
Rich Harris 7a8c8fd577 replace {{yield}} with <slot/>
8 years ago
Rich Harris d734a6b823 start work on <slot>
8 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
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 d622bc3e47 use 31 instead of 33
9 years ago
Rich Harris 7a877b5857 use bitshifting for magic perf boost
9 years ago
Rich Harris 4b1f1e8392 TS-ify spaces.js and deindent.js, so they get included in prettier task
9 years ago
Rich Harris b0a1616e31 add trailing commas to prettier config, only run on .ts files
9 years ago
Rich Harris 84595fb381 run prettier on src, update tests
9 years ago
Rich Harris d752959ef1 change error message for invalid bindings
9 years ago
Rich Harris 5ccc200222 separate parsing rules for textareas
9 years ago
Rich-Harris 4d5107113e more TS
9 years ago
Rich-Harris 48384b846c typescriptify validator
9 years ago
Rich-Harris 7c3fca57cf more typescript conversion
9 years ago
Rich-Harris 8d07a5f9bd gah, rollup needs the file extensions. which idiot wrote it
9 years ago
Rich-Harris e85bec00a2 add a few type annotations
9 years ago
Rich-Harris 13b87acfb9 remove .ts file extensions
9 years ago
Rich-Harris 1c5e6e7430 rename all (almost) .js files
9 years ago
Rich-Harris 366c490bcc switch a few more files over
9 years ago
Rich-Harris 0d7b16e4e8 some more html entity stuff, the bits i understand at least
9 years ago
Rich-Harris 2d8c34de39 add complete list of html entities
9 years ago
Rich-Harris 7f76ab24f9 Merge branch 'master' into gh-7
9 years ago
Conduitry a5dce59735 fix parsing of expressions wrapped in parentheses (#534)
9 years ago
Rich-Harris 53c5c32da3 allow parameter-less transitions
9 years ago
Rich-Harris 2784ae0ade parse transition directives
9 years ago
Rich-Harris 9f2bd988a0 collapse text around comments
9 years ago
Rich-Harris 75e8d6205e better error for bind:value="{{foo}}" - fixes #437
9 years ago
Rich-Harris 05ea031895 prevent unclosed <script> causing infinite loop
9 years ago
Rich-Harris 6e0d0b1a12 use a map to avoid false positives
9 years ago
Rich-Harris 6c754c2a3d special case literals
9 years ago
Conduitry eab3f62f25 try to parse expressions as javascript before interpreting them as an identifier (#424)
9 years ago
Rich Harris 3ead9bfc3f Merge branch 'master' into gh-371
9 years ago
Conduitry 7d03b74576 use maps and sets in many places instead of plain objects
9 years ago