Connor Skees
be9eb8e0b0
improve code coverage
...
also identified dead code and a bug in saturation and hue fns
2021-07-14 01:40:11 -04:00
Connor Skees
884b92f476
remove test macro shorthand for unchanged output
2020-11-20 04:34:36 -05:00
Connor Skees
a665cb13cc
remove cfg(test)
from test files
2020-08-11 20:22:24 -04:00
ConnorSkees
b081fe780b
handle escaped @ else
...
this commit makes the assumption that
https://github.com/sass/dart-sass/issues/1011 is unintended behavior
and may need to be reverted should dart-sass decide it is intended
2020-05-22 21:34:22 -04:00
ConnorSkees
2db3398fe2
properly handle escaped newlines in quoted strings
2020-05-16 17:20:53 -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
d53b44aafe
tabs are not emitted literally
2020-04-26 19:02:43 -04:00
ConnorSkees
a29d8aea7b
test unquoted escape minus unquoted
2020-04-21 06:01:11 -04:00
ConnorSkees
8f27525536
interpolated strings are literal
2020-04-20 11:34:49 -04:00
ConnorSkees
7579a6e9b5
refactor parsing of unquoted strings
2020-04-19 20:22:31 -04:00
ConnorSkees
e820395cc5
refactor printing and parsing of quoted strings
2020-04-19 13:51:37 -04:00
ConnorSkees
13a96273e4
emit charset only when output contains utf-8
2020-04-05 23:20:47 -04:00
ConnorSkees
a8ab6b1675
test for unquoted string escape equality
2020-04-05 20:08:48 -04:00
ConnorSkees
6df6bcf1da
refactor value parsing
2020-04-01 15:32:52 -04:00
ConnorSkees
57f941350b
add more tests for quoting and !important
2020-03-31 23:39:32 -04:00
ConnorSkees
faf9cf8818
temporarily ignore quoting tests
2020-03-31 22:00:13 -04:00
ConnorSkees
e97ec4eb8b
add more string tests
2020-03-31 15:15:39 -04:00
ConnorSkees
526b4aa15f
hexchars escaped in strings don't recieve trailing space
2020-03-31 11:52:28 -04:00
ConnorSkees
07505399da
remove the lexer
2020-03-29 19:42:27 -04:00
ConnorSkees
ae5a69a91b
move and add string escape tests
2020-03-25 11:47:26 -04:00