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:
Paul Beckingham 2011-06-13 23:06:54 -04:00
parent 087cf7e5ed
commit e0abee7f9f
4 changed files with 66 additions and 21 deletions

View file

@ -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?