694 Commits

Author SHA1 Message Date
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
ConnorSkees
096abb6ca0 handle selector with nothing after colon 2020-05-24 09:07:16 -04:00
ConnorSkees
042dbfa914 remove panics from missing identifiers 2020-05-24 08:56:53 -04:00
ConnorSkees
2aaaf59e4f make division with number as lhs more robust 2020-05-24 08:17:08 -04:00
ConnorSkees
a01ed981ce make parsing of toplevel tokens more robust 2020-05-24 07:43:54 -04:00
ConnorSkees
90f7023896 handle ( and ) at toplevel 2020-05-23 16:36:11 -04:00
ConnorSkees
5137353cb4 rustfmt 2020-05-23 14:08:40 -04:00
ConnorSkees
34f9436163 remove unwrap in favor of if let 2020-05-23 14:03:47 -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
130177d9fe allow + in selectors 2020-05-23 12:06:04 -04:00
ConnorSkees
eca952b201 handle toplevel closing curly brace 2020-05-23 11:59:04 -04:00
ConnorSkees
a3548b0044 remove panic for missing equal 2020-05-23 11:50:25 -04:00