148 Commits

Author SHA1 Message Date
ConnorSkees
286f67b984 ident addition chaining 2020-03-01 07:42:12 -05:00
ConnorSkees
7949699229 Handle variables in binary ops in function calls 2020-02-29 18:58:09 -05:00
ConnorSkees
ed4d19fe96 Initial implementation of placeholder selectors 2020-02-29 17:23:17 -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
659dfba1b2 @for tests 2020-02-29 11:47:06 -05:00
ConnorSkees
bc2c927aa7 Properly emit @charset 2020-02-28 18:27:32 -05:00
ConnorSkees
46b96d03b1 Refactor how @return is parsed 2020-02-28 01:02:11 -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
a645424186 Refactor handling of quotes inside interpolation 2020-02-24 16:58:48 -05:00
ConnorSkees
011577c9f6 test for interpolation in attribute selectors 2020-02-24 15:10:30 -05:00
ConnorSkees
404c7fb66a Various tests 2020-02-24 09:38:05 -05:00
ConnorSkees
4c3f5e24ee Handle utf8 input (a bit) 2020-02-23 07:52:14 -05:00
ConnorSkees
ef4a9e9ded Strings can start with # and don't have to be colors 2020-02-23 07:41:00 -05:00
ConnorSkees
023bc647bd Properly handle trailing commas combined with newlines 2020-02-22 18:33:42 -05:00
ConnorSkees
4ee9cc72a6 Preserve newlines after , in selectors 2020-02-22 17:26:30 -05:00
ConnorSkees
bf0ce2fe1a Correctly print whitespace when no params in at rule 2020-02-22 17:09:15 -05:00
ConnorSkees
260b357bba Test for unknown at rules 2020-02-22 17:08:58 -05:00
ConnorSkees
735f222e15 Style namespaces can have variables come before them 2020-02-22 16:41:10 -05:00
ConnorSkees
a3b260c0bd Allow nested unknown @ rules 2020-02-22 15:34:32 -05:00
ConnorSkees
a6cc86e4db Create tests for media queries 2020-02-22 13:03:02 -05:00
ConnorSkees
fa665ae55f color addition is undefined 2020-02-17 10:39:32 -05:00
ConnorSkees
a44e52c7e3 Test for trailing comma in function args 2020-02-16 21:46:11 -05:00
ConnorSkees
95f8917d6c Uncomment meta function tests 2020-02-16 21:42:40 -05:00
ConnorSkees
8e0fdb8585 Test for named arg with value of variable 2020-02-16 21:38:29 -05:00
ConnorSkees
42cbd685d3 Refactor how function call args are parsed 2020-02-16 21:34:52 -05:00
ConnorSkees
c68a55327b Unquote empty string is null 2020-02-16 18:45:14 -05:00
ConnorSkees
f57da880b6 fmt 2020-02-16 17:49:37 -05:00
ConnorSkees
d4dd360682 Handle number passed to invert() 2020-02-16 17:00:31 -05:00
ConnorSkees
948c489785 Properly implement weighted inversion 2020-02-16 16:53:28 -05:00
ConnorSkees
ca0e2d47cb Grayscale function behaves differently when given a number 2020-02-16 16:11:24 -05:00
ConnorSkees
4238124344 fmt tests 2020-02-16 15:34:07 -05:00
ConnorSkees
3512873363 Properly print negative decimals 2020-02-16 15:30:31 -05:00
ConnorSkees
fcb5069f82 Keep track of original values given from hsla() 2020-02-16 15:06:02 -05:00
ConnorSkees
2b3e2ce34c rustfmt 2020-02-16 15:03:28 -05:00
ConnorSkees
cdf057f8d0 fmt tests 2020-02-16 12:44:02 -05:00
ConnorSkees
6d0686866e hsla doesn't care about units 2020-02-16 10:28:33 -05:00
ConnorSkees
042c5f4f2f Null should not be preserved 2020-02-16 10:27:51 -05:00
ConnorSkees
72ae82b6c5 Create test for interchangable - _ in builtins 2020-02-15 11:47:37 -05:00
ConnorSkees
48e618c43d Don't print out styles if they are null 2020-02-15 09:58:41 -05:00
ConnorSkees
8f379c425d Add tests for str-length() 2020-02-15 09:48:58 -05:00
ConnorSkees
19d68c3c5d Handle str-slice $end-at is 0 2020-02-15 08:54:10 -05:00