Title: Comment after pass at same indentation crashes Jython
Type: behaviour Severity: major
Components: Jythonc compiler Versions: Jython 2.5
Status: open Resolution:
Dependencies: Superseder:
Assigned To: fwierzbicki Nosy List: fwierzbicki, glyphobet
Priority: normal Keywords:

Created on 2011-10-27.10:22:33 by glyphobet, last changed 2013-02-25.19:27:26 by fwierzbicki.

File name Uploaded Description Edit Remove glyphobet, 2011-10-27.10:22:32 Sample code that illustrates this error
msg6685 (view) Author: Matt Chisholm (glyphobet) Date: 2011-10-27.10:22:32
The attached Jython code, with a comment following some code at the same indentation level and no newline at the end of the file, causes a SyntaxError:

  File "../", line 4
    # comment
SyntaxError: required (...)+ loop did not match anything at character '<EOF>'

With a newline at the end of the file, it's fine. In CPython, it's fine with or without the trailing newline.
Date User Action Args
2013-02-25 19:27:26fwierzbickisetpriority: normal
assignee: fwierzbicki
versions: + Jython 2.5, - 2.5.2
nosy: + fwierzbicki
2011-10-27 10:22:33glyphobetcreate