]> git.llucax.com Git - software/pymin.git/blobdiff - dispatcher.py
Bugfix: tokens starting with escape sequences where splitted up.
[software/pymin.git] / dispatcher.py
index a5541330c7b7387de91e982da411524e05c946f2..b10303ff7d3b15a18c29e25b5836a78724debfa1 100644 (file)
@@ -195,7 +195,7 @@ def parse_command(command):
     escape = False
     keyword = None
     state = SEP
-    for c in command:
+    for n, c in enumerate(command):
         # Escaped character
         if escape:
             for e in escaped_chars:
@@ -214,7 +214,7 @@ def parse_command(command):
         if state == SEP:
             if c in separators:
                 continue
-            if buff:
+            if buff and n != 2: # First item, not a escape sequence
                 if c == EQUAL: # Keyword found
                     keyword = buff
                     buff = u''