allow for non-whitespace characters to surround strings

This commit is contained in:
Josh Junon 2017-03-24 00:46:15 -07:00
parent 64f01e0d65
commit 9024677a77

View File

@ -43,7 +43,7 @@ except UnicodeEncodeError:
CAP_CHAR = '->'
COMMENT_REGXP = re.compile(r'((?:(?:"(?:[^\\"]|(\\\\)*\\")*")|(?:\'(?:[^\\"]|(\\\\)*\\\')*\')|[^#])*)(#.*)$')
CMDLINE_REGXP = re.compile(r'(?:([\'"])(?:\\.|.)*(?:\1))|([^\t ]+)')
CMDLINE_REGXP = re.compile(r'(?:[^\t ]*([\'"])(?:\\.|.)*(?:\1))[^\t ]*|([^\t ]+)')
AST_ELEMENTS = {
'builtins': __builtins__.keys(),