Skip to content

Parser crashing when the program is not terminated with a newline #11

Description

@pavelvelikhov

If the program is not terminated with a newline, the parser crashes with an error:

#coding: pythonql

print([ select y for x in [1,2,3] let y = x**2 ])

C:\Python\Scripts\PythonQL>python testPQL.py
'NoneType' object has no attribute 'lineno'
File "testPQL.py", line 1
SyntaxError: encoding problem: pythonql

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions