Multiline string in Python Console is not highlighted properly

Open
#136 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

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.

Description

  • Editor name and version: Atom 1.27.1 & GitHub
  • Platform: Ubuntu
  • Color scheme: One Dark
  • MagicPython version: 1.0.12
  • A sreenshot:
    2
  • 5-10 lines of surrounding code:
>>> lua_func = lua.eval('''
...     function(a, b) -- a plus b
...         return a + b
...     end
... ''')
  • The same code highlighted by Pygments:
    3
Dominant language
JavaScript
Stars
1.4k
Forks
98
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from MagicStack/MagicPython

All issues in MagicStack/MagicPython

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.