From b7438edfd54d88d8bf157c1cf2c54ddc7e2ba383 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 11 Jul 2015 10:56:55 -0400 Subject: [PATCH] Lexer: Fixed bug that allowed unterminated quotes strings --- src/Lexer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Lexer.cpp b/src/Lexer.cpp index 842952bca..dbce50c83 100644 --- a/src/Lexer.cpp +++ b/src/Lexer.cpp @@ -1290,7 +1290,8 @@ bool Lexer::readWord ( 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; } ////////////////////////////////////////////////////////////////////////////////