32 Commits

Author SHA1 Message Date
Connor Skees
26ec16a802 more robustly parse @else if 2021-07-20 23:55:18 -04:00
Connor Skees
a34aa32128 simplify lookahead for @use and @media 2021-07-19 20:50:12 -04:00
Connor Skees
839f101829 emit comments inside @if rule 2021-07-14 21:19:38 -04:00
Connor Skees
884b92f476 remove test macro shorthand for unchanged output 2020-11-20 04:34:36 -05:00
Connor Skees
5bcf499942 & is null inside selectors at root 2020-08-17 03:13:45 -04:00
Connor Skees
a665cb13cc remove cfg(test) from test files 2020-08-11 20:22:24 -04:00
Connor Skees
d5b2410a8c allow multiline comments in more contexts 2020-08-07 11:39:14 -04:00
Connor Skees
6631b8ae0e correctly parse the function filter syntax 2020-07-28 18:09:23 -04:00
Connor Skees
b42ae61435 test for crazy interpolation inside @if 2020-07-08 09:08:25 -04:00
ConnorSkees
a3a33db47a improve selector error handling 2020-06-22 12:39:09 -04:00
ConnorSkees
962549e31b remove most remaining unwraps 2020-06-18 18:22:58 -04:00
ConnorSkees
50e6550380 add new, now passing tests 2020-06-16 20:32:32 -04:00
ConnorSkees
632d649fdb if conditions are evaluated lazily 2020-06-08 00:01:14 -04:00
ConnorSkees
8846a09d1c @ else is case sensitive 2020-06-01 21:44:10 -04:00
ConnorSkees
6a13c6f320 at-rules are case sensitive 2020-06-01 21:35:23 -04:00
ConnorSkees
3c1c55038f better handle multiline errors
this is more of a quick fix for potential panics; it does not
properly substitute for real multiline error messages
2020-05-24 12:19:08 -04:00
ConnorSkees
c42fdc5ee7 remove unwrap when nothing after / 2020-05-24 10:47:16 -04:00
ConnorSkees
f52d784756 remove panic from unclosed call args 2020-05-24 10:18:15 -04:00
ConnorSkees
737a6ba90d emit proper error on unclosed quote 2020-05-24 10:04:30 -04:00
ConnorSkees
b653c55ad7 handle case when there is no input after escape 2020-05-24 09:20:55 -04:00
ConnorSkees
042dbfa914 remove panics from missing identifiers 2020-05-24 08:56:53 -04:00
ConnorSkees
5137353cb4 rustfmt 2020-05-23 14:08:40 -04:00
ConnorSkees
c4cfb9112e eagerly evaluate \@if conditions 2020-05-23 13:39:47 -04:00
ConnorSkees
3c97400935 remove panics on malformed @ if 2020-05-23 12:48:34 -04:00
ConnorSkees
d655879975 test for uppercase escapes in at rules 2020-05-22 21:56:19 -04:00
ConnorSkees
b081fe780b handle escaped @ else
this commit makes the assumption that
https://github.com/sass/dart-sass/issues/1011 is unintended behavior
and may need to be reverted should dart-sass decide it is intended
2020-05-22 21:34:22 -04:00
ConnorSkees
409ac80921 handle multiline comments surrounding @ if condition 2020-04-23 19:32:32 -04:00
ConnorSkees
8be3fdc8d9 test for nested if in functions 2020-04-22 11:37:20 -04:00
ConnorSkees
4ca6e304a5 allow at-rules other than else to follow @ if 2020-04-20 10:57:35 -04:00
ConnorSkees
07505399da remove the lexer 2020-03-29 19:42:27 -04:00
ConnorSkees
f15ab57573 refactor @if/@else if/@else 2020-03-24 22:13:38 -04:00
ConnorSkees
2f0fbd2415 @if/@else tests 2020-03-22 02:18:15 -04:00