Skip to content

Commit

Permalink
Integrate contributed patch for multi-byte whitespace character literals
Browse files Browse the repository at this point in the history
Patch provided by Patrick Thomson (@patrickt) - thanks a lot!
  • Loading branch information
simonrepp committed Jan 8, 2020
1 parent 49182d6 commit c059967
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/scanner.cc
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ struct Scanner {
inline bool is_horizontal_whitespace(TSLexer *lexer) {
return lexer->lookahead == ' ' ||
lexer->lookahead == '\t' ||
lexer->lookahead == '\uFEFF' ||
lexer->lookahead == '\u2060' ||
lexer->lookahead == '\u200B';
lexer->lookahead == 0xFEFF ||
lexer->lookahead == 0x2060 ||
lexer->lookahead == 0x200B;
}

bool scan(TSLexer *lexer, const bool *valid_symbols) {
Expand Down

0 comments on commit c059967

Please sign in to comment.