From 6c0dfe4c4ddccb307b2f3e9b341c2f721172270c Mon Sep 17 00:00:00 2001 From: Douglas Clowes Date: Fri, 26 Sep 2014 17:16:43 +1000 Subject: [PATCH] Allow empty strings --- site_ansto/instrument/util/gen_sct.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/site_ansto/instrument/util/gen_sct.py b/site_ansto/instrument/util/gen_sct.py index 3381f3dd..b77a2b56 100755 --- a/site_ansto/instrument/util/gen_sct.py +++ b/site_ansto/instrument/util/gen_sct.py @@ -216,12 +216,12 @@ def t_tcl_error(t): t.lexer.skip(1) def t_TEXT_STRING1(t): - r'\'[^\']+\'' + r'\'[^\']*\'' t.value = t.value[1:-1] return t def t_TEXT_STRING2(t): - r"\"[^\"]+\"" + r"\"[^\"]*\"" t.value = t.value[1:-1] return t