Don't unquote the results of the parse

This commit is contained in:
kernelpanek 2017-03-15 01:26:16 -06:00
parent 5758b1687d
commit e715b49dd2

View file

@ -29,8 +29,8 @@ class RawNginxParser(object):
# any chars in single or double quotes
# All of these COULD be upgraded to something like
# https://stackoverflow.com/a/16130746
dquoted = QuotedString('"', multiline=True)
squoted = QuotedString("'", multiline=True)
dquoted = QuotedString('"', multiline=True, unquoteResults=False)
squoted = QuotedString("'", multiline=True, unquoteResults=False)
nonspecial = Regex(r"[^\{\};,]")
varsub = Regex(r"(\$\{\w+\})")
# nonspecial nibbles one character at a time, but the other objects take