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