98 Commits

Author SHA1 Message Date
ConnorSkees
4ca6e304a5 allow at-rules other than else to follow @ if 2020-04-20 10:57:35 -04:00
ConnorSkees
4cdcf4f0d4 use peekmore rather than std::iter::Peekable 2020-04-20 03:45:28 -04:00
ConnorSkees
eb57f6f092 parse normal css atrules as unknown 2020-04-12 21:56:27 -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
47330a92c6 Selector::replace takes super selector by reference 2020-04-06 14:40:28 -04:00
ConnorSkees
26fdcfdf17 interpolated ampersand in at-root 2020-04-06 14:30:36 -04:00
ConnorSkees
8802a92f9b at-root with nothing contains super selector 2020-04-06 13:30:36 -04:00
ConnorSkees
648dc04c33 initial implementation of @ at-root 2020-04-06 13:13:03 -04:00
ConnorSkees
ef282c5c18 consolidate inspect implementations 2020-04-06 00:27:09 -04:00
ConnorSkees
4ab4f401d5 @ debug has the same output as inspect() 2020-04-06 00:23:58 -04:00
ConnorSkees
f0c1d508e6 refactor @ warn and @ debug parsing 2020-04-06 00:13:15 -04:00
ConnorSkees
44ff1c99b3 add helper function Value::from_vec 2020-04-06 00:11:18 -04:00
ConnorSkees
81e84536da refactor @ error to just be a real error 2020-04-05 23:56:08 -04:00
ConnorSkees
b0c89ff8b9 refactor atrule kind to separate file 2020-04-05 23:37:55 -04:00
ConnorSkees
05fde03697 refactor @ for parsing to separate file 2020-04-05 23:36:24 -04:00
ConnorSkees
d550615957 implement order of operations 2020-04-05 17:34:30 -04:00
ConnorSkees
b7be1705a2 args and default values are lazily evaluated 2020-04-04 18:17:04 -04:00
ConnorSkees
3f98d1abca initial implementation of get-function() 2020-04-03 21:38:34 -04:00
ConnorSkees
8e3e23c6cd builtin functions take args by value 2020-04-02 13:45:14 -04:00
ConnorSkees
39031aefff initial implementation of varargs 2020-04-02 13:33:26 -04:00
ConnorSkees
f9fc0ed8cb differentiate named and positional args 2020-04-02 12:28:28 -04:00
ConnorSkees
b93e3c6f21 handle while with empty condition 2020-04-02 00:28:03 -04:00
ConnorSkees
e836ecb8ce implement \@while 2020-04-02 00:19:43 -04:00
ConnorSkees
978fbaade0 allow whitespace between ! and important 2020-03-31 22:00:38 -04:00
ConnorSkees
84b6ca9180 remove superfluous variable 2020-03-31 11:27:15 -04:00
ConnorSkees
f7d9d4432a initial implementation of @each 2020-03-31 01:00:25 -04:00
ConnorSkees
beff60ad31 clippy 2020-03-30 17:06:23 -04:00
ConnorSkees
2885eec853 remove commented dbg statements 2020-03-29 22:21:42 -04:00
ConnorSkees
9e38fbc747 remove leftover debug statements 2020-03-29 19:51:35 -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
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
521862bc97 Proper error messages inside unknown atrule parsing 2020-03-22 00:12:35 -04:00
ConnorSkees
f0c2522967 better error message when missing to or through 2020-03-20 23:15:51 -04:00
ConnorSkees
dcb712e3d4 Refactor unit conversions into separate file 2020-03-19 16:24:31 -04:00
ConnorSkees
9bbdf762ce clippy 2020-03-18 20:11:14 -04:00
ConnorSkees
061694bd63 Initial implementation of !global (some issues remain) 2020-03-17 20:13:53 -04:00
ConnorSkees
84e402023a @content boilerplate 2020-03-01 17:06:55 -05:00
ConnorSkees
d7b22a41a6 Properly handle & in most contexts 2020-03-01 12:03:14 -05:00
ConnorSkees
35163c4a36 Properly scope variables inside for loops 2020-03-01 08:20:59 -05:00
ConnorSkees
14eb173c56 Refactor unknown at rule parsing to separate file 2020-03-01 08:02:59 -05:00
ConnorSkees
7d39b0c86a Evaluate binary ops when inserting variables 2020-02-29 20:09:41 -05:00
ConnorSkees
c5f2d04c6c better @for error messages 2020-02-29 17:25:51 -05:00
ConnorSkees
93911c30b0 Refactor at rules to directory 2020-02-29 16:45:42 -05:00