Project: aptanastudio
Issue APSTUD-4995: Code-formatting in PyDev may take place even with syntax error, yielding wrong results
Having the code below (which has a syntax error), should not be code-formatted, but it ends up being code-formatted, which yields wrong results. {code} '''class Bar: ''' class Foo: a+b #should not be code-formatted ''' ''' {code} To properly fix this, the PyDev parser should have a 'faster' way of operating, which means doing only syntax parsing without generating an actual tree (as the code-formatter is currently text-based and not AST-based) just to get syntax errors. This is especially troublesome when code-formatting on save is used.
Story points: 8