diff expr.py @ 13:ec0e83ec329f

allow both kinds of strings
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 03 Jun 2011 11:15:40 -0700
parents 835efd8acb04
children 6f0c032b65f5
line wrap: on
line diff
--- a/expr.py	Fri Jun 03 11:09:08 2011 -0700
+++ b/expr.py	Fri Jun 03 11:15:40 2011 -0700
@@ -139,7 +139,7 @@
             (r"true|false", bool_),
             (r"[a-zA-Z_]\w*", identifier),
             (r"[0-9]+", integer),
-            (r'"[^"]*"', string_),
+            (r'("[^"]*")|(\'[^\']*\')', string_),
             (r"==", eq),
             (r"!=", neq),
             (r"\|\|", or_),