1234 Commits

Author SHA1 Message Date
ConnorSkees
849f3d8479 Refactor color-other builtin function arg macros 2020-03-16 10:52:42 -04:00
ConnorSkees
51585235c3 Remove decl! macro
This lets rustfmt work and gives better autocomplete and error messages
inside builtin functions.
2020-03-16 10:35:38 -04:00
ConnorSkees
d8db937470 reorder macro params 2020-03-10 21:53:21 -04:00
ConnorSkees
0665e67158 bump bugfix version 2020-03-10 21:30:36 -04:00
ConnorSkees
31fbb0a77e rustfmt 2020-03-10 21:23:47 -04:00
ConnorSkees
8458106833 Replace lazy_static! with once_cell::sync::Lazy
As per
276134eb93 (r37745873),
this allows us to avoid a macro call and get better autocompletion
within the declaration.
2020-03-10 21:19:23 -04:00
ConnorSkees
276134eb93 prefer hashmap over btreemap where ordering is unimportant 2020-03-03 19:51:02 -05:00
ConnorSkees
94a6109a05 exclude Cargo.lock from crates.io 2020-03-01 17:16:58 -05:00
ConnorSkees
74adf39166 Remove Cargo.lock 2020-03-01 17:13:48 -05:00
ConnorSkees
162377a06b Bump version to 0.3.0 2020-03-01 17:13:08 -05:00
ConnorSkees
84e402023a @content boilerplate 2020-03-01 17:06:55 -05:00
ConnorSkees
3181d58441 refactor and cleaning 2020-03-01 14:53:52 -05:00
ConnorSkees
d7b22a41a6 Properly handle & in most contexts 2020-03-01 12:03:14 -05:00
ConnorSkees
6ebadd7869 Add toplevel documentation 2020-03-01 09:08:13 -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
286f67b984 ident addition chaining 2020-03-01 07:42:12 -05:00
ConnorSkees
547ac7415a Improve color ops error messages 2020-02-29 20:14:51 -05:00
ConnorSkees
7d39b0c86a Evaluate binary ops when inserting variables 2020-02-29 20:09:41 -05:00
ConnorSkees
b62b9240c0 Exit with error 2020-02-29 20:02:58 -05:00
ConnorSkees
4e7cf277e1 Improve binary op error messages 2020-02-29 20:01:43 -05:00
ConnorSkees
7949699229 Handle variables in binary ops in function calls 2020-02-29 18:58:09 -05:00
ConnorSkees
c5f2d04c6c better @for error messages 2020-02-29 17:25:51 -05:00
ConnorSkees
ed4d19fe96 Initial implementation of placeholder selectors 2020-02-29 17:23:17 -05:00
ConnorSkees
93911c30b0 Refactor at rules to directory 2020-02-29 16:45:42 -05:00
ConnorSkees
624cf06f69 clippy 2020-02-29 16:13:57 -05:00
ConnorSkees
5367cb315a Allow multiple semicolons 2020-02-29 15:54:13 -05:00
ConnorSkees
82813fee6f Allow @for to include only styles 2020-02-29 15:29:04 -05:00
ConnorSkees
7923d096a7 Allow variable declarations in at rules 2020-02-29 14:16:26 -05:00
ConnorSkees
b85b122e3d Preserve case of keywords from, to, and through 2020-02-29 12:11:40 -05:00
ConnorSkees
0adc6f90e3 @for non-integer error messages 2020-02-29 11:54:12 -05:00
ConnorSkees
659dfba1b2 @for tests 2020-02-29 11:47:06 -05:00
ConnorSkees
1b79127cc5 Initial implementation of @for 2020-02-29 11:46:48 -05:00
ConnorSkees
e2fcfeec47 rustfmt 2020-02-28 18:32:11 -05:00
ConnorSkees
bc2c927aa7 Properly emit @charset 2020-02-28 18:27:32 -05:00
ConnorSkees
1dfe77bcff Better mixin error messages 2020-02-28 01:06:51 -05:00
ConnorSkees
46b96d03b1 Refactor how @return is parsed 2020-02-28 01:02:11 -05:00
ConnorSkees
a91ab9007e Rename Token method equals_symbol to is_symbol 2020-02-28 01:01:31 -05:00
ConnorSkees
8619f88806 Remove unused QuoteKind impl 2020-02-28 00:41:14 -05:00
ConnorSkees
9eba5e9a14 2020-02-24 tests 2020-02-24 20:16:19 -05:00
ConnorSkees
906ca62a37 By default emit double quotes 2020-02-24 20:06:07 -05:00
ConnorSkees
9f81efe812 Print quotes properly when string contains quotes 2020-02-24 19:49:24 -05:00
ConnorSkees
6c5cf4b405 properly escape backslashes 2020-02-24 19:13:28 -05:00
ConnorSkees
c4d365a124 Create spaced list when values are adjacent 2020-02-24 19:05:50 -05:00
ConnorSkees
fba6f2eb73 Properly emit quotes after interpolation 2020-02-24 18:58:09 -05:00
ConnorSkees
465ac1b381 Fix bug where styles after quote were gobbled 2020-02-24 18:11:01 -05:00
ConnorSkees
8c6be57872 Handle curly braces in quotes in styles 2020-02-24 17:47:32 -05:00
ConnorSkees
c2e339fb5b Remove inner _parse_interpolation() 2020-02-24 17:08:49 -05:00
ConnorSkees
a645424186 Refactor handling of quotes inside interpolation 2020-02-24 16:58:48 -05:00
ConnorSkees
54e71130e7 Strings containing interpolation are double quoted 2020-02-24 15:18:53 -05:00