182 Commits

Author SHA1 Message Date
ConnorSkees
409ac80921 handle multiline comments surrounding @ if condition 2020-04-23 19:32:32 -04:00
ConnorSkees
9bb7c05d19 improve handling of @ while scoping 2020-04-23 18:14:42 -04:00
ConnorSkees
ca318d47df properly handle @ while in functions 2020-04-23 15:23:53 -04:00
ConnorSkees
5b33b8fc74 refactor @ for to be used in @ function 2020-04-23 13:57:10 -04:00
ConnorSkees
34b886b758 more robustly handle escaping 2020-04-22 10:57:57 -04:00
ConnorSkees
632ff5aae8 take reference to path 2020-04-21 18:43:10 -04:00
ConnorSkees
3805eaab2b clippy 2020-04-21 18:22:26 -04:00
ConnorSkees
6a01eeb1d8 Remove format module
This was code leftover from before there were proper unit tests. It
remained for some time as a debugging tool, but as more features have
been added, it has become a maintenance burden and no longer provides a
tangible benefit.
2020-04-21 18:01:35 -04:00
ConnorSkees
a339499c9b return string rather than writing to buffer 2020-04-21 05:25:08 -04:00
ConnorSkees
93bd950940 2020-04-21 tests 2020-04-21 04:59:03 -04:00
ConnorSkees
4cdcf4f0d4 use peekmore rather than std::iter::Peekable 2020-04-20 03:45:28 -04:00
ConnorSkees
e07ceda8c7 add unit field to ident eating 2020-04-20 03:20:08 -04:00
ConnorSkees
7579a6e9b5 refactor parsing of unquoted strings 2020-04-19 20:22:31 -04:00
ConnorSkees
9a72d9714a BREAKING: consolidate StyleSheet::print_as_css 2020-04-18 18:53:18 -04:00
ConnorSkees
a83aef04ca use Spanned::map_node rather than destructuring 2020-04-18 13:03:54 -04:00
ConnorSkees
de78c1147a manually resolve some formatting issues 2020-04-17 13:06:54 -04:00
ConnorSkees
f0895db939 bump version to 0.6.0 2020-04-12 22:18:02 -04:00
ConnorSkees
c017ccfeb4 toplevel atrules within selectors 2020-04-12 21:47:32 -04:00
ConnorSkees
62f9f7da4f integrate error handling with codemap 2020-04-12 19:37:12 -04:00
ConnorSkees
648dc04c33 initial implementation of @ at-root 2020-04-06 13:13:03 -04:00
ConnorSkees
81e84536da refactor @ error to just be a real error 2020-04-05 23:56:08 -04:00
ConnorSkees
13a96273e4 emit charset only when output contains utf-8 2020-04-05 23:20:47 -04:00
ConnorSkees
74dab6872f rename css.rs to output.rs 2020-04-05 22:47:12 -04:00
ConnorSkees
598f79ab50 allow selectors to begin with 0-9 2020-04-04 21:05:22 -04:00
ConnorSkees
ece0f5afde allow !global in mixins and functions 2020-04-04 14:53:08 -04:00
ConnorSkees
c0eaf4c5f6 allow semicolon after closing brace 2020-04-04 03:00:38 -04:00
ConnorSkees
ef25d8b880 handle control characters at start of selector 2020-04-02 02:15:11 -04:00
ConnorSkees
f5d3400666 allow whitespace after variable name in declaration 2020-04-02 00:31:58 -04:00
ConnorSkees
e836ecb8ce implement \@while 2020-04-02 00:19:43 -04:00
ConnorSkees
b71b11dccb selector can start with > 2020-04-01 22:31:10 -04:00
ConnorSkees
bd426b9fab better heuristics when no space between colon and style 2020-04-01 19:35:04 -04:00
ConnorSkees
5fb3f52114 0.5.0 tests in toplevel docs 2020-04-01 17:59:47 -04:00
ConnorSkees
f46d53d3cc implement keyword operators 2020-04-01 17:40:35 -04:00
ConnorSkees
f7d9d4432a initial implementation of @each 2020-03-31 01:00:25 -04:00
ConnorSkees
eb478b632d initial implementation of maps 2020-03-30 15:44:06 -04:00
ConnorSkees
08dcf0fae7 remove unused symbol and whitespace structs 2020-03-30 10:47:19 -04:00
ConnorSkees
31ec0cc7f8 properly handle interpolation in selectors 2020-03-30 02:30:44 -04:00
ConnorSkees
57a704172f properly handle silent comments in styles 2020-03-30 02:21:41 -04:00
ConnorSkees
ae0ce9894c variables do not include interpolation 2020-03-30 01:48:37 -04:00
ConnorSkees
07505399da remove the lexer 2020-03-29 19:42:27 -04:00
ConnorSkees
f15ab57573 refactor @if/@else if/@else 2020-03-24 22:13:38 -04:00
ConnorSkees
b292d56efa refactor function body to allow more than at-rules 2020-03-24 01:26:23 -04:00
ConnorSkees
3afe88e2d6 !global variables are also in local scope 2020-03-24 00:43:09 -04:00
ConnorSkees
0be8828bf0 make better use of num traits 2020-03-22 22:28:54 -04:00
ConnorSkees
415b19fc47 implement @content inside mixins 2020-03-22 15:08:13 -04:00
ConnorSkees
907ac3390c refactor functions and mixins into atrule folder 2020-03-22 14:26:33 -04:00
ConnorSkees
f1238c4d3a implement @if/@else 2020-03-22 02:14:01 -04:00
ConnorSkees
78d7d5ce36 proper error message for out of place @return 2020-03-22 00:47:21 -04:00
ConnorSkees
c5f3936eb2 refactor lexing of at-rules 2020-03-21 23:57:36 -04:00
ConnorSkees
90fb2e6112 reduce usage of std::process::exit 2020-03-21 14:33:27 -04:00