Commit Graph

15 Commits

Author SHA1 Message Date
Alexander Akait
6ae3af3673
feat(css/ast): Add nested selector (#2641) 2021-11-06 16:58:41 +00:00
Alexander Akait
c361982963
refactor(css/ast): Rename NamespacedName to TypeSelector (#2642) 2021-11-06 16:01:50 +00:00
Alexander Akait
a8e4c72f33
fix(css/parser): Exclude whitespace from span (#2659) 2021-11-06 09:32:24 +00:00
Alexander Akait
20f4e2148c
refactor(css/ast): Use names from specification for ast types (#2643)
swc_css_ast:
 - Rename `AttrSelectorOp` to `AttrSelectorMatcher`.
2021-11-05 11:42:51 +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
0e458778ec
refactor(css/ast): Rename types (#2532) 2021-10-27 03:38:05 +09:00
Alexander Akait
6876b1b26c
refactor(css/parser): Fix parsing of some selectors (#2525)
swc_css_parser:
 - Fix whitespace bugs related to parsing of attribute selectors.
 - Fix bugs related to empty namespace selectors.
2021-10-25 23:48:56 +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
Alexander Akait
f0be833f14
test(css/parser): Combinators (#2359) 2021-10-07 00:32:31 +09:00
Donny/강동윤
b206404d94
feat(css): Recover from invalid properties (#2312)
swc_css_ast:
 - Add `DeclBlockItem`.
 - Change `DeclBlock.properties` to `DeclBlock.items`.

swc_css_parser:
 - Add a way to recovered errors.
2021-09-28 09:58:56 +00:00
Alexander Akait
8af2173a33
test(css/parser): Add tests for comments in selectors (#2293) 2021-09-24 17:09:57 +09:00
Alexander Akait
75c930caf1
fix(css/ast): Fix typo (#2298) 2021-09-24 15:48:31 +09:00
강동윤
0d63470eba
feat(css): Groundwork for css processor (#2105)
swc_css_ast:
 - Rename `Values` to `SpaceValues`.

swc_css_parser:
 - Add `parse_str`.
 - Make `ErrorKind` `#[non_exhaustive]`.
 - Fix span.

swc_css_visit:
 - Create visitors.
2021-08-20 07:48:08 +00:00
강동윤
d39acd1d11
feat(css): Implement parser (#2074) 2021-08-19 05:16:32 +00:00