mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 13:37:20 +02:00
Lexer: Updated list of Unicode space characters
This commit is contained in:
parent
605f8020b7
commit
b4e5285a50
1 changed files with 5 additions and 1 deletions
|
@ -146,7 +146,7 @@ const std::string Lexer::typeName (const Lexer::Type& type)
|
||||||
// Complete Unicode whitespace list.
|
// Complete Unicode whitespace list.
|
||||||
//
|
//
|
||||||
// http://en.wikipedia.org/wiki/Whitespace_character
|
// http://en.wikipedia.org/wiki/Whitespace_character
|
||||||
// Updated 2013-11-18
|
// Updated 2015-09-13
|
||||||
// Static
|
// Static
|
||||||
//
|
//
|
||||||
// TODO This list should be derived from the Unicode database.
|
// TODO This list should be derived from the Unicode database.
|
||||||
|
@ -173,10 +173,14 @@ bool Lexer::isWhitespace (int c)
|
||||||
c == 0x2008 || // punctuation space Common Separator, space
|
c == 0x2008 || // punctuation space Common Separator, space
|
||||||
c == 0x2009 || // thin space Common Separator, space
|
c == 0x2009 || // thin space Common Separator, space
|
||||||
c == 0x200A || // hair space Common Separator, space
|
c == 0x200A || // hair space Common Separator, space
|
||||||
|
c == 0x200B || // zero width space
|
||||||
|
c == 0x200C || // zero width non-joiner
|
||||||
|
c == 0x200D || // zero width joiner
|
||||||
c == 0x2028 || // line separator Common Separator, line
|
c == 0x2028 || // line separator Common Separator, line
|
||||||
c == 0x2029 || // paragraph separator Common Separator, paragraph
|
c == 0x2029 || // paragraph separator Common Separator, paragraph
|
||||||
c == 0x202F || // narrow no-break space Common Separator, space
|
c == 0x202F || // narrow no-break space Common Separator, space
|
||||||
c == 0x205F || // medium mathematical space Common Separator, space
|
c == 0x205F || // medium mathematical space Common Separator, space
|
||||||
|
c == 0x2060 || // word joiner
|
||||||
c == 0x3000); // ideographic space Common Separator, space
|
c == 0x3000); // ideographic space Common Separator, space
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue