Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python syntax error with indented block followed by triple quoted string #418

Closed
matthew-brett opened this issue Aug 26, 2016 · 2 comments
Closed

Comments

@matthew-brett
Copy link
Contributor

With this Python file:

if True:
    print(True)

"""
A string"""

Hydrogen: Run - with the cursor over if True: gives this output:

File "<ipython-input-18-0c40b3af1bc9>", line 4
    """
       ^
SyntaxError: EOF while scanning triple-quoted string literal

No error when selecting Python code (not string) before Hydrogen: Run.

No error for

if True:
    print(True)

"""A string
"""
@lgeiger
Copy link
Member

lgeiger commented Aug 26, 2016

Hydrogen determines the code block to execute via Atom's fold range, more precisely with the function editor.languageMode.rowRangeForCodeFoldAtBufferRow.

I'm abroad this week and haven't investigated yet but I'm afraid this is an issue within Atom itself. Maybe you could try if the code folding of Atom works as expected.

@matthew-brett
Copy link
Contributor Author

Thanks - I submitted a report, closing here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants