1075 Commits

Author SHA1 Message Date
ConnorSkees
efc62a2433 Add if() function 2020-02-02 22:33:04 -05:00
ConnorSkees
6faebf5105 HACK: parse interpolations into values then tokens 2020-02-02 21:11:22 -05:00
ConnorSkees
c7f34f573f newlines in builtin files 2020-02-02 21:09:29 -05:00
ConnorSkees
1c4ad8a7fa Builtin function boilerplate 2020-02-02 18:05:36 -05:00
ConnorSkees
4263fd2532 Devour whitespace after { 2020-02-02 18:01:09 -05:00
ConnorSkees
231252a9d9 Remove redundant tests 2020-02-02 17:44:39 -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
89060a0e83 Implement ident substraction 2020-02-02 14:46:58 -05:00
ConnorSkees
ffff80109b Implement ident addition 2020-02-02 11:17:23 -05:00
ConnorSkees
6bc96aeff4 clippy and rustfmt 2020-02-02 10:27:08 -05:00
ConnorSkees
bad318aae8 Handle no space between colon when also missing semicolon 2020-02-01 23:22:36 -05:00
ConnorSkees
b8bacbde8b Refactor tests into separate files 2020-02-01 23:09:22 -05:00
ConnorSkees
ea03f71928 Refactor style parsing 2020-02-01 21:59:23 -05:00
ConnorSkees
3b3de2d83b Cleanups to make compiler happy 2020-02-01 19:39:20 -05:00
ConnorSkees
8e42d73c1e Initial implementation of nested styles 2020-02-01 19:33:56 -05:00
ConnorSkees
b1d887ee3d rustfmt 2020-02-01 19:25:44 -05:00
ConnorSkees
3f929066c4 Rename eat_interpolation() to parse_interpolation() 2020-02-01 19:24:37 -05:00
ConnorSkees
06be720f49 Tests for nested selector combinators 2020-02-01 11:31:49 -05:00
ConnorSkees
3699f987c8 Print 2 newlines between unrelated styles 2020-01-29 21:25:07 -05:00
ConnorSkees
304c7b7489 Move cfg(test) to toplevel 2020-01-29 21:05:03 -05:00
ConnorSkees
d464124ae0 Handle !default 2020-01-29 21:02:32 -05:00
ConnorSkees
849cddeea4 Parse (but do not remove) placeholder selectors 2020-01-29 20:02:02 -05:00
ConnorSkees
c43aa18e06 Media query boilerplate 2020-01-29 20:01:41 -05:00
ConnorSkees
f774bce5be We are passing more tests! 2020-01-27 20:24:22 -05:00
ConnorSkees
ae708091a6 Allow numbers in variable names 2020-01-27 17:21:18 -05:00
ConnorSkees
7975d468f1 Remove quotes from interpolation (naively) 2020-01-27 17:15:02 -05:00
ConnorSkees
1c5c8e0650 Update README for 2020-01-27 test results 2020-01-27 16:57:12 -05:00
ConnorSkees
889488121a Remove extra commas in selectors 2020-01-26 19:16:26 -05:00
ConnorSkees
15edae53d6 Lex attributes in a much more robust way :) 2020-01-26 19:07:24 -05:00
ConnorSkees
c7efbc7e05 Properly interpolate values coming from variables 2020-01-26 18:43:07 -05:00
ConnorSkees
1761af0a01 Handle toplevel @include 2020-01-26 17:28:39 -05:00
ConnorSkees
934f9d860d Handle comments between selectors 2020-01-26 16:55:06 -05:00
ConnorSkees
a8ebc91702 Normalize newlines in comments 2020-01-26 16:50:08 -05:00
ConnorSkees
f3787ef305 Escape double quotes 2020-01-26 16:28:38 -05:00
ConnorSkees
7fa0ee885e Refactor QuoteKind to common.rs 2020-01-26 16:23:37 -05:00
ConnorSkees
8b26fabb62 Work on builtin functions 2020-01-26 15:28:39 -05:00
ConnorSkees
52c9905b14 Basic implementation of @charset 2020-01-26 15:27:38 -05:00
ConnorSkees
357647b19c rustfmt 2020-01-26 15:26:45 -05:00
ConnorSkees
1aa4e6ced2 More Value ops 2020-01-26 15:04:16 -05:00
ConnorSkees
e2a487a59b Handle comments inside call args 2020-01-26 13:53:18 -05:00
ConnorSkees
05eb03a38b Properly handle calling mixin with empty args 2020-01-26 13:52:47 -05:00
ConnorSkees
620e33f541 dbg! on unexpected toplevel token 2020-01-26 13:50:19 -05:00
ConnorSkees
8756adaaaf Truncate keywords (some of them probably shouldn't be keywords) 2020-01-26 12:34:04 -05:00
ConnorSkees
7e5214d629 Handle keywords in Value 2020-01-26 12:28:12 -05:00
ConnorSkees
63dd66f0f7 Handle arbitrary attribute modifiers (kinda) 2020-01-26 12:23:21 -05:00
ConnorSkees
c183ea8c1e Test for returning variable in function and calling functions with variables as parameter 2020-01-26 11:47:46 -05:00
ConnorSkees
65030eb7ea Handle uppercase I in attribute selectors 2020-01-26 11:47:00 -05:00
ConnorSkees
3e45f05d97 Handle whitespace with interpolated super selector 2020-01-26 11:17:48 -05:00
ConnorSkees
4e6ae91825 Handle interpolated super selectors 2020-01-26 11:07:57 -05:00