Interaction with outer language for template language

I'm developing a template language called https://github.com/dropbox/pyxl that is used to embed html inside of Python files. The html expressions themselves are representing objects, which are assignable to Python names.

For example:

header = *

which is fine, but in turn the Python context see:

header =

which is an invalid statement causeing a red error mark.

Does anyone have any idea on how I can solve this?

---
Original message URL: http://devnet.jetbrains.net/message/5516634#5516634

Please sign in to leave a comment.