Skip to content

Commit 346630c

Browse files
committed
Accept empty string
1 parent af4fd3b commit 346630c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎mvdxml_expression.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def __repr__(self):
2424

2525

2626
word = pp.Word(pp.alphanums + "_" + " " + "/" + "#")
27-
quoted = pp.Combine("'" + word + "'")
27+
quoted = pp.Combine("'" + pp.Optional(word) + "'")
2828
bool_value = pp.CaselessLiteral("TRUE") | pp.CaselessLiteral("FALSE")
2929
ref_val = word + "[" + word + "]"
3030
rhs = quoted | bool_value | ref_val | word

0 commit comments

Comments
 (0)