606 Commits

Author SHA1 Message Date
ConnorSkees
fe07c3d87e fix regression in mixin scoping 2020-06-18 18:22:59 -04:00
ConnorSkees
962549e31b remove most remaining unwraps 2020-06-18 18:22:58 -04:00
ConnorSkees
0352c82c88 remove unwrap from variable value parsing 2020-06-18 18:22:58 -04:00
ConnorSkees
d90ef7fa41 remove unwraps in Value::to_css_string 2020-06-18 18:22:58 -04:00
ConnorSkees
5d5e7adb98 more accurately parse strange hex colors 2020-06-18 18:22:58 -04:00
ConnorSkees
76290a4159 further refactor parsing of hex colors 2020-06-18 18:22:58 -04:00
ConnorSkees
d196a93f91 arglists are lists too 2020-06-18 18:22:58 -04:00
ConnorSkees
d3413b7cbf & is null when at root 2020-06-18 18:22:58 -04:00
ConnorSkees
1e91008459 newline at end of test file 2020-06-18 18:22:58 -04:00
ConnorSkees
5eeee2f01f resolve issue with @ at-root 2020-06-16 22:00:45 -04:00
Connor Skees
2ad1b70f61
Refactor parsing into struct, rather than standalone functions
reimplement parsing
2020-06-16 20:37:10 -04:00
ConnorSkees
50e6550380 add new, now passing tests 2020-06-16 20:32:32 -04:00
ConnorSkees
71dd7df951 reimplement parsing 2020-06-16 19:38:30 -04:00
ConnorSkees
e86524c960 add test for ::{} (panic under old parser) 2020-06-12 21:51:17 -04:00
ConnorSkees
632d649fdb if conditions are evaluated lazily 2020-06-08 00:01:14 -04:00
Connor Skees
365325729a
Merge pull request #12 from connorskees/selector-fns
Implement builtin selector functions
2020-06-07 23:29:06 -04:00
ConnorSkees
a48d2b97ce more psuedo tests for is-superselector 2020-06-07 22:08:23 -04:00
ConnorSkees
5dceb27950 test special case :current in is-superselector 2020-06-07 21:34:34 -04:00
ConnorSkees
457eccc59b reimplement @ at-root 2020-06-07 17:49:39 -04:00
ConnorSkees
113e011652 implement simple-selectors 2020-06-07 17:40:24 -04:00
ConnorSkees
e76903cb47 initial implementation of selector-replace 2020-06-07 17:12:01 -04:00
ConnorSkees
e0ab71f73e simple pseudo selector-extend tests 2020-06-07 13:27:54 -04:00
ConnorSkees
d71e996e2b initial implementation of selector-extend 2020-06-07 11:46:34 -04:00
ConnorSkees
6decd85d0d handle invalid escape sequences in variable names 2020-06-04 15:14:00 -04:00
ConnorSkees
3552fbcb99 allow negative values in single arg hsl/hsla 2020-06-03 21:23:33 -04:00
ConnorSkees
29f7b286b0 handle negative values in 1arg rgba? 2020-06-02 17:06:31 -04:00
ConnorSkees
8846a09d1c @ else is case sensitive 2020-06-01 21:44:10 -04:00
ConnorSkees
5689ae0131 resolve malformed tests 2020-06-01 21:36:08 -04:00
ConnorSkees
6a13c6f320 at-rules are case sensitive 2020-06-01 21:35:23 -04:00
ConnorSkees
b4ef2a6fb4 add tests for an+b 2020-05-31 15:16:38 -04:00
ConnorSkees
d5844e3536 more tests for is-superselector 2020-05-31 08:01:32 -04:00
ConnorSkees
f3a58e0fa3 initial implementation of selector-* builtin fns 2020-05-31 04:51:41 -04:00
ConnorSkees
c2f4014a1a resolve test errors 2020-05-31 04:48:21 -04:00
ConnorSkees
3c1a9a99b7 properly evaluate equality between lists 2020-05-28 01:48:46 -04:00
ConnorSkees
6e7938f969 increase code coverage for bit integers 2020-05-25 14:44:46 -04:00
ConnorSkees
2a4d4f960b remove all unwraps from style parsing 2020-05-24 16:49:49 -04:00
ConnorSkees
d90d998ccd remove unwrap in Value::is_null 2020-05-24 16:41:09 -04:00
ConnorSkees
3c129780d0 span_before in quoted string 2020-05-24 16:27:07 -04:00
ConnorSkees
8d4b4bedbe remove unwrap in peek_ident 2020-05-24 15:53:51 -04:00
ConnorSkees
e5cceb60ec track span_before when parsing values
this allows us to remove many panics on invalid input
2020-05-24 15:30:06 -04:00
ConnorSkees
812e9fec9c rustfmt 2020-05-24 13:50:45 -04:00
ConnorSkees
b5c1fb2013 ignore non-ascii numeric characters in numbers 2020-05-24 13:08:31 -04:00
ConnorSkees
c9e5bc89c4 remove unwrap in unknown at rule parsing 2020-05-24 12:52:38 -04:00
ConnorSkees
3051cec45a disallow standalone @else 2020-05-24 12:47:04 -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
1382ea32ca remove unwrap inside interpolated ident body parsing 2020-05-24 10:37:40 -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