41 Commits

Author SHA1 Message Date
ConnorSkees
1f82d65eac & is null when at root 2020-06-17 02:35:35 -04:00
ConnorSkees
e86524c960 add test for ::{} (panic under old parser) 2020-06-12 21:51:17 -04:00
ConnorSkees
b4ef2a6fb4 add tests for an+b 2020-05-31 15:16:38 -04:00
ConnorSkees
f3a58e0fa3 initial implementation of selector-* builtin fns 2020-05-31 04:51:41 -04:00
ConnorSkees
812e9fec9c rustfmt 2020-05-24 13:50:45 -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
a01ed981ce make parsing of toplevel tokens more robust 2020-05-24 07:43:54 -04:00
ConnorSkees
130177d9fe allow + in selectors 2020-05-23 12:06:04 -04:00
ConnorSkees
6b9f68922f allow non-ascii alphanumeric characters in selectors 2020-05-21 13:09:20 -04:00
ConnorSkees
eb7fe52074 minor cleanup 2020-05-19 18:28:18 -04:00
ConnorSkees
2d0a9abb13 parse selectors that grow larger from interpolation 2020-05-16 17:28:30 -04:00
ConnorSkees
eea8bdbc25 allow escapes at the start of selectors 2020-05-16 16:15:11 -04:00
ConnorSkees
f6fd0e9af5 refactor how & is handled in values 2020-04-26 13:07:44 -04:00
ConnorSkees
4a2503b04c refactor attribute parsing 2020-04-26 00:55:38 -04:00
ConnorSkees
637dc39544 prefer #[ignore] over commenting out tests 2020-04-25 12:16:10 -04:00
ConnorSkees
86f2ac6a6c remove placeholders in pseudo parens closer to correct 2020-04-05 12:52:02 -04:00
ConnorSkees
49d823c990 add sass nesting spec test verbatim 2020-04-05 02:48:17 -04:00
ConnorSkees
b7b58c2ac6 selector unification of pseudo parens 2020-04-05 02:39:38 -04:00
ConnorSkees
2a01668ae0 refactor selector parsing 2020-04-03 13:28:37 -04:00
ConnorSkees
4565121b34 for now, don't unquote attr val 2020-04-02 22:07:22 -04:00
ConnorSkees
db9515d347 strip qutoes from attribute value 2020-04-02 21:59:36 -04:00
ConnorSkees
c1d79047f2 change casing of expected in modifier error 2020-04-02 21:51:55 -04:00
ConnorSkees
476578cdc6 fail on modifier with attrkind any 2020-04-02 21:44:26 -04:00
ConnorSkees
b71b11dccb selector can start with > 2020-04-01 22:31:10 -04:00
ConnorSkees
6df6bcf1da refactor value parsing 2020-04-01 15:32:52 -04:00
ConnorSkees
86729df241 handle \ in selectors 2020-03-30 03:13:29 -04:00
ConnorSkees
7164728c69 properly handle hash in string 2020-03-30 02:54:11 -04:00
ConnorSkees
31ec0cc7f8 properly handle interpolation in selectors 2020-03-30 02:30:44 -04:00
ConnorSkees
8f96a821f7 allow id selectors to start with numbers 2020-03-30 00:18:37 -04:00
ConnorSkees
d7b22a41a6 Properly handle & in most contexts 2020-03-01 12:03:14 -05:00
ConnorSkees
ed4d19fe96 Initial implementation of placeholder selectors 2020-02-29 17:23:17 -05:00
ConnorSkees
906ca62a37 By default emit double quotes 2020-02-24 20:06:07 -05:00
ConnorSkees
011577c9f6 test for interpolation in attribute selectors 2020-02-24 15:10:30 -05:00
ConnorSkees
404c7fb66a Various tests 2020-02-24 09:38:05 -05:00
ConnorSkees
023bc647bd Properly handle trailing commas combined with newlines 2020-02-22 18:33:42 -05:00
ConnorSkees
4ee9cc72a6 Preserve newlines after , in selectors 2020-02-22 17:26:30 -05:00
ConnorSkees
6faebf5105 HACK: parse interpolations into values then tokens 2020-02-02 21:11:22 -05:00
ConnorSkees
9c97c734ef Strip whitespace inside pseudo paren selectors 2020-02-02 15:21:47 -05:00
ConnorSkees
ee44982198 Handle pseudo elements like ::before 2020-02-02 15:06:46 -05:00
ConnorSkees
b8bacbde8b Refactor tests into separate files 2020-02-01 23:09:22 -05:00