expr_parser: support single-quoted strings
Change-Id: I00af87ac3ebd1d63ceba0bb2c9dcf17f56aa8177 Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
837c7629bb
commit
5aaf5f1c6f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue