Skip to content

Commit

Permalink
Better if condition parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
buglloc committed Jul 6, 2017
1 parent e947fd1 commit 04dfa39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gixy/parser/raw_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def script(self):
(if_modifier + Optional(space) + value) |
(variable + Optional(space + if_modifier + Optional(space) + value))
)
condition = Regex(r'\((?:[^();\n\r\\]|(?:\(.*\))|(?:\\.))+?\)')\
condition = Regex(r'\((?:[^()\n\r\\]|(?:\(.*\))|(?:\\.))+?\)')\
.setParseAction(lambda s, l, t: condition_body.parseString(t[0][1:-1]))

# rules
Expand Down

0 comments on commit 04dfa39

Please sign in to comment.