Juan Hernandez has posted comments on this change.
Change subject: Allow quoting of strings with single or double quotes
......................................................................
Patch Set 1:
What do you think about something like this:
def t_STRING(self, t):
r'''(?s)("([^"\\]|\\.)*"|'[^']*')'''
if t.value[0] == '"':
t.value = t.value[1:-1].replace(r'\\', '\\')
else:
t.value = t.value[1:-1]
t.value = t.value.replace('\\\n', '')
return t
It should have a behaviour similar to what you get in the unix shell.
--
To view, visit http://gerrit.ovirt.org/3514
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: Id79685788bd339e035da1e3239167bc3cef293d0
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine-cli
Gerrit-Branch: master
Gerrit-Owner: Adam Litke <[email protected]>
Gerrit-Reviewer: Juan Hernandez <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches