JuliaEditorSupport/atom-language-julia

PyCall Highlighting

cojua8 opened this issue · 5 comments

Hi,

When using PyCall with the

py"""
some python code
"""
syntax, the editor does not read it as a code block, so all the julia code after it is colored as if it was a comment

I think this happens when your python code is invalid (e.g. not indented correctly or whatnot). Can you make sure that's not the case?

Forgot to say I am working on VSCode. In Juno it works fine.

The original code is fine for me now, but any chance this could be fixed as well?

image

Indenting or removing the trailing newline fixes it:

image

image

No, I don't think so.

Surely there must be some way, right? :) If its a matter of staring at regex'es for long enough, I might be motivated enough to do it, if you could point me in the right direction?