Skip to content

Commit 4c8c9f3

Browse files
committed
fix: style token escape
1 parent 2335f81 commit 4c8c9f3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/src/parser.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,13 @@ class ColorParser implements IReader<StringTokenValue> {
102102
}
103103
}
104104

105+
if (reader.peek() == Consts.esc) {
106+
return _consumeEscSequence(token);
107+
}
108+
105109
if (colors.isNotEmpty) {
106110
token = _parseStyleToken(token, colors);
107111
}
108-
109112
return token;
110113
}
111114

0 commit comments

Comments
 (0)