736 Commits

Author SHA1 Message Date
ConnorSkees
a645424186 Refactor handling of quotes inside interpolation 2020-02-24 16:58:48 -05:00
ConnorSkees
54e71130e7 Strings containing interpolation are double quoted 2020-02-24 15:18:53 -05:00
ConnorSkees
011577c9f6 test for interpolation in attribute selectors 2020-02-24 15:10:30 -05:00
ConnorSkees
4c32d97971 remove comment 2020-02-24 15:10:15 -05:00
ConnorSkees
9877f4a0e0 Attribute selectors are parsed after lexing 2020-02-24 15:07:18 -05:00
ConnorSkees
404c7fb66a Various tests 2020-02-24 09:38:05 -05:00
ConnorSkees
776e6444e6 rustfmt 2020-02-24 09:37:32 -05:00
ConnorSkees
e8ee76f7dc Properly parse single quoted strings and string interpolation 2020-02-24 09:36:17 -05:00
ConnorSkees
4c3f5e24ee Handle utf8 input (a bit) 2020-02-23 07:52:14 -05:00
ConnorSkees
ef4a9e9ded Strings can start with # and don't have to be colors 2020-02-23 07:41:00 -05:00
ConnorSkees
dff4798a68 Better mixin parsing error message 2020-02-23 07:32:40 -05:00
ConnorSkees
023bc647bd Properly handle trailing commas combined with newlines 2020-02-22 18:33:42 -05:00
ConnorSkees
53861ccb0d clippy 2020-02-22 17:57:13 -05:00
ConnorSkees
4ee9cc72a6 Preserve newlines after , in selectors 2020-02-22 17:26:30 -05:00
ConnorSkees
686c3f0a51 Remove extraneous selector display tests 2020-02-22 17:11:12 -05:00
ConnorSkees
bf0ce2fe1a Correctly print whitespace when no params in at rule 2020-02-22 17:09:15 -05:00
ConnorSkees
260b357bba Test for unknown at rules 2020-02-22 17:08:58 -05:00
ConnorSkees
735f222e15 Style namespaces can have variables come before them 2020-02-22 16:41:10 -05:00
ConnorSkees
a3b260c0bd Allow nested unknown @ rules 2020-02-22 15:34:32 -05:00
ConnorSkees
a6cc86e4db Create tests for media queries 2020-02-22 13:03:02 -05:00
ConnorSkees
8c227290a0 Flatten whitespace in media query 2020-02-22 12:56:23 -05:00
ConnorSkees
d1d636fa17 Trim whitespace from media query 2020-02-22 12:53:58 -05:00
ConnorSkees
71b4729613 Toplevel unknown at rules 2020-02-22 12:02:52 -05:00
ConnorSkees
c8e3462e74 placeholder for unknown at rules in Display 2020-02-22 12:00:07 -05:00
ConnorSkees
a4cd8ae02c rustfmt 2020-02-22 11:59:33 -05:00
ConnorSkees
e6120a0f59 Properly convert unknown at rules to css 2020-02-22 11:59:16 -05:00
ConnorSkees
d114509464 Parse and construct unknown at rules 2020-02-22 11:58:30 -05:00
ConnorSkees
cacf8c41ab Implement Selector::new() utility function 2020-02-22 10:25:30 -05:00
ConnorSkees
2c38db8703 2020-02-18 tests 2020-02-18 07:09:12 -05:00
ConnorSkees
fa665ae55f color addition is undefined 2020-02-17 10:39:32 -05:00
ConnorSkees
844b506872 Value operations can fail 2020-02-17 10:27:04 -05:00
ConnorSkees
0e2e5cb8bc Add period to mixin error message 2020-02-17 10:02:44 -05:00
ConnorSkees
af4917a4e6 correct regression in toplevel & error message
Broken in bb16060ddb8df75b2096966dda1e5c700a494407
2020-02-17 09:53:10 -05:00
ConnorSkees
85a2c8eaeb Better error for missing identifier after : in selector 2020-02-17 09:40:30 -05:00
ConnorSkees
bb16060ddb rustfmt 2020-02-17 09:37:34 -05:00
ConnorSkees
36ec80e0da Use .remove() over .get() to avoid clone 2020-02-17 09:33:52 -05:00
ConnorSkees
585011c621 Remove unwrap from FuncArgs 2020-02-17 09:29:05 -05:00
ConnorSkees
dbe73fc2ac rustfmt 2020-02-17 09:23:24 -05:00
ConnorSkees
eab0049566 Use SassError in more places 2020-02-17 09:22:41 -05:00
ConnorSkees
64fbc96d9d Form feed is whitespace 2020-02-17 09:09:31 -05:00
ConnorSkees
af443f8f57 Prefer .remove() over .get() to avoid clone 2020-02-17 09:08:28 -05:00
ConnorSkees
33d486ccde Properly handle hsl value in color::other functions 2020-02-17 08:16:04 -05:00
ConnorSkees
f7aacba76c Use .remove() over .get() to avoid a clone 2020-02-17 08:13:15 -05:00
ConnorSkees
e7de93bd38 Proper error message for undefined variables 2020-02-17 07:55:03 -05:00
ConnorSkees
f550d820b0 change-color() hue error message 2020-02-16 22:49:19 -05:00
ConnorSkees
4040e3ad1c sat and lum in change color are scale: 2020-02-16 22:46:27 -05:00
ConnorSkees
86a0e24330 Proper bounds for change-color rgba 2020-02-16 22:35:02 -05:00
ConnorSkees
5ee5f59b2c Error messages for color::other functions 2020-02-16 22:30:29 -05:00
ConnorSkees
e5bbba3462 Take self by value in eval to avoid clone in common case 2020-02-16 22:06:30 -05:00
ConnorSkees
23b90aa97e Use remove() rather than .get() to avoid a clone 2020-02-16 22:04:54 -05:00