Tan Li Hau
23f8f4ba6d
[feat] centralise parse errors ( #6519 )
...
Co-authored-by: pngwn <hello@pngwn.io>
3 years ago
Tan Li Hau
6a582af839
[fix] script style end parsing ( #6511 )
...
* update script end tag parsing to allow whitespace after tagname
* update style end tag parsing to allow for whitespace after tag name
* handle no closing match for script and style for eof and non-eof failures
* cleaning up script and style end tag parsing
Co-authored-by: pngwn <hello@pngwn.io>
3 years ago
Mohammed Al-Qurafi
1b33248ead
#6299 - Throw a compile error when passing an empty directive name ( #6300 )
...
* Compile error when passing empty directive names
* Revert "Compile error when passing empty directive names"
This reverts commit ac8718b3a4
.
* Compile error when passing empty directive names
* Adjust empty-directive-name error offset
3 years ago
Tan Li Hau
3acaa03f6f
fix textarea end tag parsing ( #6424 )
3 years ago
Bjørn
de6d0c66d3
Add a more descriptive message for the error generated by an empty shorthand attribute ( #6217 )
...
Added error message "empty-attribute-shorthand" for when the shorthand attribute is empty,
giving a more explicit error for #6086
3 years ago
Conduitry
286c60da4d
fix missing slotted elements in AST ( #6148 )
4 years ago
Tan Li Hau
1d6e20f2a9
implement <svelte:fragment> ( #4556 )
...
add validation and test
replace svelte:slot -> svelte:fragment
slot as a sugar syntax
fix eslint
4 years ago
Tan Li Hau
8867bc31c2
update css-tree@^1.1.2 ( #5958 )
4 years ago
Anders Lorentsen
acf60d88a0
error on empty name in `class:` directive ( #5939 )
4 years ago
pushkine
13e3d755da
allow duplicates of the same action on an element ( #5875 )
4 years ago
Andreas Ehrencrona
aa759f44fc
add missing end AST property to non-top-level <style> tags ( #5487 )
4 years ago
Tan Li Hau
3dad14f0e1
better error message for mismatched tags due to autoclosing ( #5060 )
4 years ago
Tan Li Hau
2450dd1ff0
update acorn@^7.3.1 for optional chaining support ( #5013 )
4 years ago
Cameron Messinides
e46e1afea5
throw parser error when :global() appears without a selector ( #4936 )
4 years ago
Tan Li Hau
37cc5888f8
dry {#each}/{#await} destructuring ( #4596 )
4 years ago
Tan Li Hau
7d1e4e82ff
support destructuring in await ( #4548 )
5 years ago
Tan Li Hau
a66437b3c1
allow <svelte:self> to be part of a slot ( #4532 )
5 years ago
Conduitry
59a5d4a52c
fix tests
5 years ago
Conduitry
f5f489984f
fix handling of reserved keywords when parsing ( #4390 )
5 years ago
Tan Li Hau
2195832ecc
better error messages for else, elseif, then, catch with unclosed tag ( #4136 )
5 years ago
Conduitry
5076613256
disallow simultaneous foo / {foo} / bind:foo ( #4343 )
...
* disallow matching attributes/shorthands/bindings (#4325 )
* add tests
* update changelog
5 years ago
Conduitry
f12340acf0
preserve js comments where possible ( #4293 )
5 years ago
Li Hau Tan
a31fea139b
then and catch block expect await, optional then block
5 years ago
Rich Harris
b9f14846b0
Structured code generation ( #3539 )
5 years ago
Rich Harris
961021a73b
Merge pull request #2809 from mrkishi/closing-tags
...
Allow end tag omission in blocks
5 years ago
Conduitry
71be8a6683
update dependencies
5 years ago
Richard Harris
506e2da680
update test
5 years ago
Richard Harris
5648269485
Merge branch 'master' of github.com:sveltejs/svelte into closing-tags
5 years ago
Thomas Ghysels
c9e3762638
Fix parsing ambiguous HTML entities ( #3071 )
...
Fixes sveltejs/sapper#759
5 years ago
Mikhail Korepanov
ea74bfec55
Allow whitespace after = in attributes ( #3026 )
5 years ago
Richard Harris
b7f9c9c954
always add raw property to text nodes
5 years ago
Timothy Johnson
ef59c32099
Fixes #2714
5 years ago
mrkishi
af85d14557
allow end tag omission in blocks
5 years ago
Rich Harris
5a536aafa2
Merge pull request #2658 from MikeMatrix/each-block-rest-destructuring
...
each-block array destructuring
5 years ago
Michael Braun
c477f50b9a
Experimenting with array destructuring in each-blocks
5 years ago
Emil Tholin
7ec1bdb712
Don't show 'Empty block' warnings for non-existent await branches
5 years ago
Richard Harris
ca0e5df0d8
update parser and js tests
6 years ago
Conduitry
bee6fe7ebc
require whitespace after `{@html` ( #2154 )
6 years ago
Richard Harris
6c85f6a6b5
change :elseif to :else if - fixes #2137
6 years ago
Richard Harris
3953c2dbfc
error on invalid compiler options — closes #2094
6 years ago
Rich Harris
687e352209
rename .html files to .svelte
6 years ago
Conduitry
a270661d20
rename `<svelte:meta>` to `<svelte:options>` ( #2017 )
6 years ago
Rich Harris
b1d919f3f2
Overhaul stats — closes #1891
6 years ago
Conduitry
f8d69e296f
replace <svelte:document> with <svelte:body> ( #1846 )
6 years ago
Richard Harris
2eb881dcb6
prevent invalid svelte: tags - fixes #1948
6 years ago
Rich Harris
48f1f6b4d0
implement `bind:this`
6 years ago
Rich Harris
f45e2b70fd
Implement reactive assignments ( #1839 )
...
This also includes elements of RFCs 2 and 3
6 years ago
Rich Harris
82b1b75afe
implement event modifiers
6 years ago
Rich Harris
9e07e3f77f
include solidus in attribute values - fixes #1772
6 years ago
Rich Harris
956f318bea
while we're here, update parser output files
6 years ago