Expressions
- Command line arguments are now handled a little differently. Each argument is subjected to further splitting, to break up expressions early in the process, prior to categorization. - Patterns are now treated as quoted string, where the quote character is /.
This commit is contained in:
@@ -230,7 +230,9 @@ bool DOM::is_primitive (const std::string& input)
|
||||
|
||||
// String?
|
||||
Nibbler n (input);
|
||||
if (n.getQuoted ('"', s) && n.depleted ())
|
||||
if ((n.getQuoted ('"', s) ||
|
||||
n.getQuoted ('\'', s)) &&
|
||||
n.depleted ())
|
||||
return true;
|
||||
|
||||
// Number?
|
||||
|
||||
Reference in New Issue
Block a user