Lexer: Fixed bug that allowed unterminated quotes strings

This commit is contained in:
Paul Beckingham 2015-07-11 10:56:55 -04:00
parent b841d0c403
commit b7438edfd5

View file

@ -1290,7 +1290,8 @@ bool Lexer::readWord (
word += utf8_character (utf8_next_char (text, cursor)); word += utf8_character (utf8_next_char (text, cursor));
} }
return word.length () > 0 ? true : false; // Word has to at least contain the quotes.
return word.length () >= 2 ? true : false;
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////