Skip to content

Commit 32be730

Browse files
authored
Emit tab characters as \9 (#553)
Closes #552
1 parent 7a75b7b commit 32be730

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
* Match Ruby Sass's behavior in some edge-cases involving numbers with many
1414
significant digits.
1515

16+
* Emit escaped tab characters in identifiers as `\9` rather than a backslash
17+
followed by a literal tab.
18+
1619
### Command-Line Interface
1720

1821
* The source map generated for a stylesheet read from standard input now uses a

lib/src/parse/parser.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ abstract class Parser {
413413

414414
if (identifierStart ? isNameStart(value) : isName(value)) {
415415
return String.fromCharCode(value);
416-
} else if ((value <= 0x1F && value != $tab) ||
416+
} else if (value <= 0x1F ||
417417
value == 0x7F ||
418418
(identifierStart && isDigit(value))) {
419419
var buffer = StringBuffer()..writeCharCode($backslash);

0 commit comments

Comments
 (0)