mercurial/parser.py
changeset 13665 e798e430c5e5
parent 13176 895f54a79c6e
child 14701 4b93bd041772
--- a/mercurial/parser.py	Wed Mar 16 18:48:59 2011 +0100
+++ b/mercurial/parser.py	Wed Mar 16 23:09:14 2011 +0100
@@ -78,7 +78,9 @@
         'generate a parse tree from a message'
         self._iter = self._tokenizer(message)
         self._advance()
-        return self._parse()
+        res = self._parse()
+        token, value, pos = self.current
+        return res, pos
     def eval(self, tree):
         'recursively evaluate a parse tree using node methods'
         if not isinstance(tree, tuple):