ConnorSkees
2d0a9abb13
parse selectors that grow larger from interpolation
2020-05-16 17:28:30 -04:00
ConnorSkees
2db3398fe2
properly handle escaped newlines in quoted strings
2020-05-16 17:20:53 -04:00
ConnorSkees
09e6568c39
update rustfmt
2020-05-16 16:56:17 -04:00
ConnorSkees
dcdd2a1cb1
edge case in which @ include had no args AND no semicolon
2020-05-16 16:54:34 -04:00
ConnorSkees
223dade62b
Emit proper error for escape sequence overflow
...
Before this commit, escape sequences above std::char::MAX ('\u{10ffff}')
would overflow and cause a panic. This commit replaces an `unwrap` with
`ok_or` and a clearer error message. This message will likely change
in the future in order to better conform to the `dart-sass` implementation
which currently also fails to cleanly handle this overflow.
See https://github.com/kaj/rsass/pull/73
2020-05-16 16:22:33 -04:00
ConnorSkees
eea8bdbc25
allow escapes at the start of selectors
2020-05-16 16:15:11 -04:00
ConnorSkees
374e9f9eb4
correctly parse idents starting with interpolation
2020-05-14 00:10:24 -04:00
ConnorSkees
0cbdc67f06
improve scoping with regard to function variables existing
2020-05-13 01:32:29 -04:00
ConnorSkees
425c36be86
improve tests for feature-exists
2020-05-13 00:19:21 -04:00
ConnorSkees
5b69ad2659
special functions are always lowercased
2020-05-13 00:16:36 -04:00
ConnorSkees
96e916e750
handle negative values in @for
2020-05-02 15:11:58 -04:00
ConnorSkees
1d518efeaf
refactor lowercasing of idents
...
avoid creating more strings than necessary
2020-04-30 19:43:59 -04:00
ConnorSkees
2ee4396978
handle scientific notation in numbers
2020-04-28 12:15:10 -04:00
ConnorSkees
ce32a7e5ac
explicitly test for equality
2020-04-26 23:21:18 -04:00
ConnorSkees
e1db99351a
more tests for type-of
2020-04-26 23:14:22 -04:00
ConnorSkees
7db57054e1
emitting get-function is an error
2020-04-26 23:11:04 -04:00
ConnorSkees
8ddc8ab4f4
test error message for undefined mixin and variable
2020-04-26 23:01:00 -04:00
ConnorSkees
f158f03708
better handle named color transparent
2020-04-26 22:51:38 -04:00
ConnorSkees
b21bc0424f
test for equality between builtin and user defined functions
2020-04-26 21:58:44 -04:00
ConnorSkees
3615835e03
allow @content in more contexts
2020-04-26 21:29:09 -04:00
ConnorSkees
6f57797c29
error inspects message
2020-04-26 19:12:36 -04:00
ConnorSkees
d53b44aafe
tabs are not emitted literally
2020-04-26 19:02:43 -04:00
ConnorSkees
cfa734e412
allow control flow inside @content
2020-04-26 18:40:05 -04:00
ConnorSkees
c4de587f4e
investigate feature complete inspect()
2020-04-26 18:27:08 -04:00
ConnorSkees
fb7fac5a53
empty bracketed lists are not null
2020-04-26 16:39:44 -04:00
ConnorSkees
ce833b7c03
proper type for @each when single variable
2020-04-26 15:02:39 -04:00
ConnorSkees
f1b60019a1
handle self referential default args
2020-04-26 13:51:49 -04:00
ConnorSkees
f6fd0e9af5
refactor how & is handled in values
2020-04-26 13:07:44 -04:00
ConnorSkees
690c8a1f89
clippy
2020-04-26 01:52:43 -04:00
ConnorSkees
4a2503b04c
refactor attribute parsing
2020-04-26 00:55:38 -04:00
ConnorSkees
a8141d2488
handle edge case in parsing of units ending with hypen followed by whitespace
2020-04-25 20:19:50 -04:00
ConnorSkees
637dc39544
prefer #[ignore] over commenting out tests
2020-04-25 12:16:10 -04:00
ConnorSkees
eb690b9adf
test for superselector in function called from get-function
2020-04-25 12:10:50 -04:00
ConnorSkees
56f198f2a7
handle () inside default value of function args
2020-04-24 23:15:41 -04:00
ConnorSkees
cc881db254
more robustly handle import paths
2020-04-24 21:38:25 -04:00
ConnorSkees
f88c22f360
test for chained imports
2020-04-24 20:30:14 -04:00
ConnorSkees
2fb64934d7
emit proper error for missing quotes on @ import
2020-04-24 20:00:22 -04:00
ConnorSkees
ecf36cd6d3
refactor how @ import is tested
2020-04-24 19:42:04 -04:00
ConnorSkees
0969df8fe5
handle url edge case involving ; and no space between before style
2020-04-24 19:13:38 -04:00
ConnorSkees
a5cd335318
properly handle whitespace and start and end of url()
2020-04-24 19:00:06 -04:00
ConnorSkees
a86d717f26
properly parse variable flags
2020-04-23 21:30:25 -04:00
ConnorSkees
99ae3ae30a
test for multiline comments in subtraction
2020-04-23 19:44:20 -04:00
ConnorSkees
409ac80921
handle multiline comments surrounding @ if condition
2020-04-23 19:32:32 -04:00
ConnorSkees
69764ceaa3
allow arbitrary control flow inside @ for
2020-04-23 18:53:19 -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
5edd0d4f35
test for cases from rsass issues
2020-04-23 14:40:27 -04:00
ConnorSkees
5b33b8fc74
refactor @ for to be used in @ function
2020-04-23 13:57:10 -04:00
ConnorSkees
71495cd03b
do not strip whitespace after var in call args
2020-04-23 13:54:49 -04:00
ConnorSkees
8be3fdc8d9
test for nested if in functions
2020-04-22 11:37:20 -04:00