Ammar Askar <am...@ammaraskar.com> added the comment:

Added a PR that is an implementation of Benjamin's suggestion. The column 
offset returned has been made 0-indexed and errors now point to the start of 
the parsed token.

This makes errors like `def class` show up as

def class
    ^

instead of

def class
        ^

Also added tests for the original example and some more errors from ast.c

----------
nosy: +ammar2

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue34683>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to