expr_parser: support single-quoted strings

Change-Id: I00af87ac3ebd1d63ceba0bb2c9dcf17f56aa8177
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2016-06-02 12:21:41 -07:00 committed by Anas Nashif
commit 5aaf5f1c6f

View file

@ -63,7 +63,7 @@ def t_INTEGER(t):
return t
def t_STR(t):
r'\"([^\\\n]|(\\.))*?\"'
r'\"([^\\\n]|(\\.))*?\"|\'([^\\\n]|(\\.))*?\''
# nip off the quotation marks
t.value = t.value[1:-1]
return t