Skip to content

Commit c996d69

Browse files
committed
Unicode support: combining spacing marks
1 parent 5041739 commit c996d69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/lexer.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ bool isNamePart(x) => char.$a <= x && x <= char.$z || char.$A <= x && x <= char.
107107
x == char.DOLLAR || x == char.UNDERSCORE ||
108108
x > 127 && (isFancyLetter(x) || unicode.isDecimalNumber(x) || isFancyNamePart(x));
109109

110-
bool isFancyNamePart(x) => x == char.ZWNJ || x == char.ZWJ || x == char.BOM || unicode.isNonspacingMark(x); // TODO: Combining Spacing Mark (Mc) is missing from unicode.
110+
bool isFancyNamePart(x) => x == char.ZWNJ || x == char.ZWJ || x == char.BOM || unicode.isNonspacingMark(x) || unicode.isSpacingMark(x);
111111

112112
/// Ordinary whitespace (not line terminators)
113113
bool isWhitespace(x) {

0 commit comments

Comments
 (0)