From 5aaf5f1c6f4d2cac13fd5b7204df1f8fdad2288e Mon Sep 17 00:00:00 2001 From: Andrew Boie Date: Thu, 2 Jun 2016 12:21:41 -0700 Subject: [PATCH] expr_parser: support single-quoted strings Change-Id: I00af87ac3ebd1d63ceba0bb2c9dcf17f56aa8177 Signed-off-by: Andrew Boie --- scripts/expr_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/expr_parser.py b/scripts/expr_parser.py index c21112472e3..a9bd4d73fc8 100644 --- a/scripts/expr_parser.py +++ b/scripts/expr_parser.py @@ -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