111 Commits

Author SHA1 Message Date
ConnorSkees
6c67fa38ef Fix readme checkboxes 2020-01-19 23:01:16 -05:00
ConnorSkees
802be9de22 Add readme 2020-01-19 22:58:25 -05:00
ConnorSkees
c64daceb20 Refactor conversion of SCSS to CSS 2020-01-19 19:27:52 -05:00
ConnorSkees
500b682739 Simplify handling of keyword arguments 2020-01-19 12:10:35 -05:00
ConnorSkees
1f1f43bf7c Implement keyword arguments in mixins 2020-01-19 11:50:30 -05:00
ConnorSkees
31506c7ce4 Add tests for default value arguments 2020-01-19 11:28:26 -05:00
ConnorSkees
1636d775c5 Implement default arguments in mixins 2020-01-19 10:58:38 -05:00
ConnorSkees
6da84575dc Prefer match over if let 2020-01-19 10:41:44 -05:00
ConnorSkees
28050116d3 Prefer match over if let 2020-01-19 01:01:02 -05:00
ConnorSkees
07cb3a4ac7 Remove clone from multiline comments 2020-01-19 00:29:45 -05:00
ConnorSkees
635f00baa6 Handle toplevel @debug, @warn, @error 2020-01-19 00:10:37 -05:00
ConnorSkees
c35940b84e Refactor include parsing into src/mixin.rs 2020-01-18 23:55:11 -05:00
ConnorSkees
4420b4ab25 Simplify mixin scoping 2020-01-18 21:15:09 -05:00
ConnorSkees
b25fe63e8e Further reduce usage of .clone() 2020-01-18 21:05:26 -05:00
ConnorSkees
720b1e9f22 Reduce usage of .clone() 2020-01-18 20:24:28 -05:00
ConnorSkees
b28295d2b1 Refactor mixin parsing into mixin.rs 2020-01-18 19:54:47 -05:00
ConnorSkees
2f1113ead8 Tidy clippy allows 2020-01-18 19:44:34 -05:00
ConnorSkees
99dfcb6756 Use Self:: for matching 2020-01-18 19:11:19 -05:00
ConnorSkees
622ca8ceef Remove more instances of unwrap() 2020-01-18 19:00:49 -05:00
ConnorSkees
d2ae3a4a0b Add cargo metadata 2020-01-18 18:59:43 -05:00
ConnorSkees
bb10fad2b8 Tidy imports 2020-01-18 18:36:00 -05:00
ConnorSkees
f3d21f1677 Parse files given path from stdin 2020-01-18 18:12:53 -05:00
ConnorSkees
0d9d1fc234 Properly interpolate all path variants 2020-01-18 18:08:32 -05:00
ConnorSkees
0485256115 Handle basic imports 2020-01-18 15:47:51 -05:00
ConnorSkees
9be0826d01 Refactor how StyleSheet is constructed 2020-01-18 14:57:56 -05:00
ConnorSkees
fb33159996 Add tempfile as dev dependency 2020-01-18 14:56:18 -05:00
ConnorSkees
afef31b808 Normalize units in selector 2020-01-18 10:27:02 -05:00
ConnorSkees
31d8017a01 rustfmt 2020-01-18 09:52:21 -05:00
ConnorSkees
abdfa1b876 Handle interpolation in mixins 2020-01-18 09:42:25 -05:00
ConnorSkees
ab8e98244f Handle positional arguments to mixins 2020-01-18 09:03:38 -05:00
ConnorSkees
d1ea6d2dd6 Fix regression: empty style should not be treated as an error 2020-01-18 08:51:47 -05:00
ConnorSkees
e15c88a3c7 rustfmt 2020-01-17 22:40:13 -05:00
ConnorSkees
8076125576 Propagate errors properly (reduce unwrap() calls) 2020-01-17 21:42:51 -05:00
ConnorSkees
02d6a511a5 remove extraneous clones 2020-01-17 21:20:56 -05:00
ConnorSkees
4114cc6f9d Add tests for variable scoping 2020-01-17 21:15:38 -05:00
ConnorSkees
eaf1e8eb96 Consume whitespace after variable value 2020-01-17 21:03:01 -05:00
ConnorSkees
cee40858ee Refactor function parsing into separate module 2020-01-17 16:23:21 -05:00
ConnorSkees
364480dc6f Add tests for nested rulesets in mixins 2020-01-17 16:14:19 -05:00
ConnorSkees
b05301f442 MVP of mixin args 2020-01-17 14:44:55 -05:00
ConnorSkees
e1191d7108 Properly consume mixin declarations and add tests for mixins 2020-01-17 10:44:16 -05:00
ConnorSkees
d4f50c8acc Remove nesting check in ruleset parsing 2020-01-17 10:43:03 -05:00
ConnorSkees
5b631fb588 don't count chars in comment 2020-01-17 10:38:59 -05:00
ConnorSkees
64c6a35add Refactor to static functions rather than methods for reusability 2020-01-17 08:14:10 -05:00
ConnorSkees
cbef775ef4 Consolidate tests to be on CSS output rather than internal representation 2020-01-14 20:23:05 -05:00
ConnorSkees
e3968ac047 Refactor out variable eating 2020-01-14 19:34:13 -05:00
ConnorSkees
2389abaeed Remove unused SelectorKind variant 2020-01-14 17:47:37 -05:00
ConnorSkees
c6fe179eeb Refactor and consolidate interpolation parsing 2020-01-14 17:39:19 -05:00
ConnorSkees
cdbd4ff9a6 Considate variable dereferencing into util function 2020-01-12 20:56:07 -05:00
ConnorSkees
7d469625be rustfmt 2020-01-12 20:55:24 -05:00
ConnorSkees
4f99e60007 Commit mixin work 2020-01-12 20:15:40 -05:00