Commit Graph

19 Commits

Author SHA1 Message Date
Alexander Akait
a8e4c72f33
fix(css/parser): Exclude whitespace from span (#2659) 2021-11-06 09:32:24 +00:00
Alexander Akait
0b76d29ae4
feat(css/ast): Add SelectorList (#2639)
swc_css_ast:
 - Add `SelectorLsit`.
 - Use `SelectorList` instead of `Vec<ComplexSelector>`.
2021-11-04 09:54:55 +00:00
Alexander Akait
cc5398b1a6
refactor(css/parser): Refactor parser for at rules (#2617)
swc_css_ast:
 - Move some at-rules to own files.

swc_css_parser:
 - Implement `Parse` for more types.
2021-11-02 11:13:23 +00:00
Alexander Akait
b806551ade
refactor(css/lexer): Refactor lexer to follow spec (#2593) 2021-11-01 16:53:26 +09:00
Alexander Akait
4f0473616d
feat(css/ast): Add value to the whitespace token (#2533) 2021-10-28 23:48:31 +09:00
Alexander Akait
0e458778ec
refactor(css/ast): Rename types (#2532) 2021-10-27 03:38:05 +09:00
Alexander Akait
e327c9a502
feat(css/ast): Add Percent token (#2482) 2021-10-22 13:35:29 +09:00
Alexander Akait
b62dc60c5d
feat(css/ast): Add Function token (#2491) 2021-10-20 04:53:08 +09:00
Alexander Akait
5234530cd5
fix(css/ast): Use correct type for units (#2464) 2021-10-19 17:32:59 +09:00
Alexander Akait
4f2dbd816c
fix(css/parser): Fix parsing of numbers (#2444) 2021-10-17 23:24:28 +09:00
Alexander Akait
c2ce89c0fb
feat(css): Add BadUrl token (#2426)
swc_css_ast:
 - Add `BadUrl` to `Token`.

swc_css_parser:
 - Implement error recovery for bad urls.
2021-10-15 22:36:54 +09:00
Alexander Akait
93a7a17472
refactor(css/ast): use delim token (#2425) 2021-10-15 04:46:47 +09:00
Alexander Akait
e2e4f2f64f
fix(css/ast): Fix delimiter token (#2415) 2021-10-14 13:22:51 +09:00
Alexander Akait
fb4869f413
feat(css/ast): Add delim token (#2398) 2021-10-12 20:47:17 +09:00
Alexander Akait
a5592e3207
feat(css/ast): Add raw to Str (#2295) 2021-10-10 10:43:11 +09:00
Alexander Akait
4ff1b7568c
feat(css/ast): Add raw to Text (#2361) 2021-10-07 20:32:54 +09:00
Donny/강동윤
3714802bd3
feat(css): Add error recovery for tokens in selector positions (#2357)
swc_css_ast:
 - Add `Rule::Invalid`.
 
swc_css_parser:
 - Add error recovery for tokens in selector positions.
 - Report an error while recovering property errors.
2021-10-06 09:25:05 +00:00
Donny/강동윤
9f4c5b7ba5
fix(css/parser): Fix error recovery logic of property values (#2331)
swc_css_parser:
 - Fix `state` used for error recovery.
2021-10-01 11:04:24 +00:00
Donny/강동윤
ce40ff73a7
feat(css/parser): Implement more error recovery (#2316)
swc_css_parser:
 - Recover from wrong properties like `flex-basis: __styled-jsx-placeholder__2%;`.
2021-09-29 05:38:49 +00:00