Source

pypy / pypy / interpreter / pyparser / pytokenizer.py

Author Commit Message Labels Comments Date
Antonio Cuni
detect inconsisten use of tab and spaces and raise an inter-level TabError in that case. We still need to convert it to applevel
Branches
py3k
Benjamin Peterson
allow ... anywhere and make it its own token
Branches
py3k
Armin Rigo
Fix the position of the "unmatched ')'" errors.
Amaury Forgeot d'Arc
At EOF, point the error to the last line of the file
Branches
fast-forward
Amaury Forgeot d'Arc
hg merge default
Branches
fast-forward
Dan Villiom Podlaski Christiansen
No-op merge to register the merge done in 0e3099e3cc33 with Mercurial.
Branches
fast-forward
Amaury Forgeot d'Arc
Merge from trunk: svn merge -r79849:80002 ../trunk
Branches
fast-forward
Armin Rigo
Fix for test_compiler. All we need is to make sure that in case more input is expected because of an opening parenthesis or tripe-quote is not closed so far, then str(SyntaxError()) is different for the different SyntaxErrors we get when adding a blank line after the input. So I made these SyntaxErrors report "lines x-y" instead of just "line x", where "x" is the line where the opening parenthesis was found, and "y" is the last line in the file.
Armin Rigo
In the report of these SyntaxErrors, shift the caret one place to the right in order to point exactly to the start of the string or the parenthesis that is never closed.
Armin Rigo
issue563 testing On multi-line EOF SyntaxErrors, report the start line instead of the EOF line.
Hakan Ardo
svn merge -r79225:HEAD svn+ssh://hakanardo@codespeak.net/svn/pypy/trunk
Branches
jit-unroll-loops
Amaury Forgeot d'Arc
Use CPython error messages
Branches
fast-forward