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

Some syntax variants are not detected properly #57

Closed
fbruetting opened this issue Jun 13, 2018 · 2 comments
Closed

Some syntax variants are not detected properly #57

fbruetting opened this issue Jun 13, 2018 · 2 comments

Comments

@fbruetting
Copy link

fbruetting commented Jun 13, 2018

When the cursor is at the first line of the following expression and Shift + Enter is pressed, an error is returned, because the instruction is aborted right after the equal sign – and thus doesn’t contain the full expression (though it’s valid Julia syntax):

bla =
[
    1,
    2,
]

Just the following works:

bla = [
    1,
    2,]

Also commented lines inside of a larger function execution leads to an error:

plot(a, b,
    xlab = "bla",      	#	xticks = 0:0.5:3,
)
@pfitzseb
Copy link
Member

Yeah, this happens because our current code-block-finding is indentation based. So e.g.

plot(a, b,
    xlab = "bla",      	#	xticks = 0:0.5:3,
    )

does work.

@pfitzseb
Copy link
Member

pfitzseb commented Jun 13, 2018

Closing in favour of JunoLab/CodeTools.jl#9.

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