1409 Commits

Author SHA1 Message Date
Connor Skees
1b033c3643 properly handle chained @content 2020-07-02 15:22:15 -04:00
Connor Skees
5dd14794c5 allow whitespace after trailing comma in map 2020-07-02 14:44:00 -04:00
Connor Skees
e7fc6815c1 update passing tests 2020-07-02 10:51:49 -04:00
Connor Skees
ae77325ad0 consolidate implementation of unvendor() 2020-07-02 10:40:43 -04:00
Connor Skees
8b907d4b67 consolidate arg evaluation for mixins and functions 2020-07-02 10:37:13 -04:00
Connor Skees
a88f07da54 allow @content to take arguments 2020-07-02 10:31:32 -04:00
Connor Skees
4b98ec198d @media no longer consumes everything after it as children 2020-07-01 07:10:47 -04:00
Connor Skees
84f52d2ef4 add scope test for inner variable redeclarations 2020-07-01 07:03:43 -04:00
Connor Skees
6ea036581b mixin stores body as Vec<Token> 2020-06-30 06:53:17 -04:00
Connor Skees
f476f4af25 no longer strip whitespace at the end of selectors
the whitespace can sometimes be part of an escape, e.g. `\ `
2020-06-30 06:43:26 -04:00
Connor Skees
8622efc7be deny exponents over 2 digits
this is done in order to avoid hangs on small inputs.
2020-06-28 07:02:12 -04:00
Connor Skees
c7608fce4e convert immutable Strings to Box<str> in Pseudo 2020-06-28 05:10:34 -04:00
Connor Skees
0483f7f057 remove superfluous trait derives 2020-06-28 03:33:04 -04:00
Connor Skees
e211aff677 remove dead code from Scope impl 2020-06-28 03:28:50 -04:00
Connor Skees
4d23270b23 update passing tests 2020-06-28 03:25:29 -04:00
Connor Skees
0b28bb4c35 optimize common case of single style 2020-06-27 07:24:53 -04:00
Connor Skees
f582439744 add scope test for local variables with functions 2020-06-27 04:26:45 -04:00
ConnorSkees
369feb5c40 use clearer naming for Number variants 2020-06-26 08:47:10 -04:00
ConnorSkees
41bfea3cea update dependencies 2020-06-26 08:03:43 -04:00
ConnorSkees
6a6be73c5f make doctests pass 2020-06-26 06:40:34 -04:00
ConnorSkees
9212ff5fa1 resolve clippy lints 2020-06-26 06:12:50 -04:00
ConnorSkees
6baf0d2340 reduce size of Namespace and Toplevel 2020-06-26 05:37:57 -04:00
ConnorSkees
f9be622eeb put errors in Box 2020-06-26 05:12:28 -04:00
ConnorSkees
a04bc40129 make Unit and Number structs smaller 2020-06-26 04:55:00 -04:00
ConnorSkees
1c73e5657a store reference to @content 2020-06-26 01:02:06 -04:00
ConnorSkees
17a0323da5 resolve clippy lints 2020-06-25 01:33:02 -04:00
ConnorSkees
e12d3a581d reduce size of parse::Stmt 2020-06-25 00:27:24 -04:00
ConnorSkees
177cacd9c9 commit temporary workaround for @keyframes 2020-06-24 11:41:36 -04:00
ConnorSkees
9512e9f39f improve parsing of media queries 2020-06-24 11:39:32 -04:00
ConnorSkees
e5e3943e5c allow clippy::single_match 2020-06-24 07:05:14 -04:00
ConnorSkees
e96fc409e9 add debug_assert to is_super_selector for pseudo 2020-06-24 06:37:26 -04:00
ConnorSkees
a82de89adc complex selector equality ignores line_break 2020-06-24 06:20:36 -04:00
ConnorSkees
4610a30024 resolve @extend issues related to attrbitute equality 2020-06-24 06:11:29 -04:00
ConnorSkees
6fec0835f8 add more selector-extend tests 2020-06-24 02:57:46 -04:00
ConnorSkees
dc3208cc05 remove devour_whitespace from selector parsing 2020-06-23 04:57:06 -04:00
ConnorSkees
36530a3309 add newly passing tests 2020-06-23 04:36:15 -04:00
ConnorSkees
173a896ab0 resolve clippy lints 2020-06-23 04:28:54 -04:00
ConnorSkees
84328f0e2c add remaining selector-unify tests 2020-06-23 04:28:54 -04:00
ConnorSkees
402d7bf8e6 unignore passing tests 2020-06-23 04:28:54 -04:00
ConnorSkees
7f8dc52e24 wrap extended selectors in Rc<RefCell<T>> 2020-06-23 04:28:54 -04:00
ConnorSkees
0650f0ebcf super selectors are resolved eagerly 2020-06-23 04:28:54 -04:00
ConnorSkees
e94dd80a53 change where parent selectors are resolved 2020-06-23 04:28:54 -04:00
ConnorSkees
991be977ac resolve regression related to equality of selectors 2020-06-23 04:28:54 -04:00
ConnorSkees
81aa6ee4b8 fix how equality is resolved between pseudo selectors 2020-06-23 04:28:37 -04:00
ConnorSkees
c700845174 resolve hang on malformed input involving and and or 2020-06-22 14:18:14 -04:00
ConnorSkees
eb6f0f3451 remove superfluous lifetimes and returns 2020-06-22 12:41:59 -04:00
ConnorSkees
a3a33db47a improve selector error handling 2020-06-22 12:39:09 -04:00
ConnorSkees
aea7c9c408 deny functions with reserved names or in control flow 2020-06-22 11:35:15 -04:00
ConnorSkees
ac2d15b776 rustfmt 2020-06-22 11:08:28 -04:00
ConnorSkees
169a6ec2b3 implement min and max 2020-06-22 11:07:54 -04:00