Skip to content

Commit b4e33ed

Browse files
author
Joshua Rogers
committed
extend value_wq regex to allow escaped spaces and nested () values
1 parent 9b89a7a commit b4e33ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gixy/parser/raw_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def script(self):
5656
keyword = Word(alphanums + ".+-_/")
5757
path = Word(alphanums + ".-_/")
5858
variable = Word("$_-" + alphanums)
59-
value_wq = Regex(r'(?:\([^\s;]*\)|\$\{\w+\}|[^\s;(){}])+')
59+
value_wq = Regex(r'(?:\([^\s;]*\)|\$\{\w+\}|\\[(){};\s]|[^\s;{}])+')
6060
value_sq = NginxQuotedString(quoteChar="'")
6161
value_dq = NginxQuotedString(quoteChar='"')
6262
value = (value_dq | value_sq | value_wq)

0 commit comments

Comments
 (0)