MagicStack / MagicStack/MagicPython

Multiline string in Python Console is not highlighted properly

Open
#136 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.4k
Forks
98
PR merge metrics
No merged PRs in 30d

Description

* **Editor name and version**: Atom 1.27.1 & GitHub
* **Platform**: Ubuntu
* **Color scheme**: One Dark
* **MagicPython version**: 1.0.12
* **A sreenshot**:
![2](https://user-images.githubusercontent.com/19969470/40881955-268358c8-6707-11e8-872d-5cfd388cb8a6.png)
* **5-10 lines of surrounding code**:
```pycon
>>> lua_func = lua.eval('''
... function(a, b) -- a plus b
... return a + b
... end
... ''')
```
* **The same code highlighted by Pygments**:
![3](https://user-images.githubusercontent.com/19969470/40881983-abe2a596-6707-11e8-9fa9-8e1d18212b75.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

No source file or test is named. Reproduce the highlighting in Atom 1.27.1 on Ubuntu with MagicPython 1.0.12 using the supplied pycon snippet, then compare it with the Pygments screenshot; it is done when the multiline embedded Lua code is highlighted correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, python
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.