1837 Commits

Author SHA1 Message Date
ConnorSkees
76b2685894 Lex and parse named colors 2020-02-07 00:10:43 -05:00
ConnorSkees
d9339a68b5 Refactor colors 2020-02-03 16:44:07 -05:00
ConnorSkees
6607101d4d Implement Add for more types 2020-02-03 15:36:11 -05:00
ConnorSkees
ed44f125f7 Add builtin function inspect() 2020-02-03 15:18:12 -05:00
ConnorSkees
f0185855c0 Add more feature-exists tests for unimplemented features 2020-02-03 15:08:14 -05:00
ConnorSkees
ed316e6eb7 2020-02-03 readme 2020-02-03 08:49:47 -05:00
ConnorSkees
816688cb84 Implement unitless builtin function 2020-02-03 08:10:55 -05:00
ConnorSkees
901bdcae3b Implement type-of builtin function 2020-02-03 07:56:21 -05:00
ConnorSkees
c92781a20e Add unit function 2020-02-03 07:35:04 -05:00
ConnorSkees
e57a189c77 Handle quotes in feature-exists 2020-02-03 07:27:57 -05:00
ConnorSkees
f82f1f3eee Add feature-exists() builtin function 2020-02-03 07:22:20 -05:00
ConnorSkees
8eb9620a1a Refactor builtin function declaration 2020-02-03 07:11:35 -05:00
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