Lexer
- ::isPath was not observing the null character string terminator.
This commit is contained in:
@@ -804,7 +804,8 @@ bool Lexer::isPath (std::string& token, Lexer::Type& type)
|
|||||||
_text[marker] != '/')
|
_text[marker] != '/')
|
||||||
{
|
{
|
||||||
utf8_next_char (_text, marker);
|
utf8_next_char (_text, marker);
|
||||||
while (! isWhitespace (_text[marker]) &&
|
while (_text[marker] &&
|
||||||
|
! isWhitespace (_text[marker]) &&
|
||||||
_text[marker] != '/')
|
_text[marker] != '/')
|
||||||
utf8_next_char (_text, marker);
|
utf8_next_char (_text, marker);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user