Skip to content

Commit c7f35dc

Browse files
committed
Parse: An empty escaped identifier is entirely whitespace
1 parent e4cbe81 commit c7f35dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Parse/Lexer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ static bool advanceIfValidContinuationOfOperator(char const *&ptr,
661661
/// Returns true if the given string is entirely whitespace (considering only
662662
/// those whitespace code points permitted in raw identifiers).
663663
static bool isEntirelyWhitespace(StringRef string) {
664-
if (string.empty()) return false;
664+
if (string.empty()) return true;
665665
char const *p = string.data(), *end = string.end();
666666
if (!advanceIf(p, end, isPermittedRawIdentifierWhitespace))
667667
return false;

0 commit comments

Comments
 (0)