X Tutup
The Wayback Machine - https://web.archive.org/web/20201206081219/https://github.com/MagicStack/MagicPython/issues/136
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

Multiline string in Python Console is not highlighted properly #136

Open
TitanSnow opened this issue Jun 3, 2018 · 3 comments
Open

Multiline string in Python Console is not highlighted properly #136

TitanSnow opened this issue Jun 3, 2018 · 3 comments

Comments

@TitanSnow
Copy link

@TitanSnow TitanSnow commented Jun 3, 2018

  • 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
@1st1
Copy link
Member

@1st1 1st1 commented Jun 3, 2018

The syntax on the screenshot is "pycon" (python console); MagicPython doesn't provide it. This snippet highlighted with "python" syntax:

>>> lua_func = lua.eval('''
...     function(a, b) -- a plus b
...         return a + b
...     end
... ''')
@1st1 1st1 closed this Jun 3, 2018
@TitanSnow
Copy link
Author

@TitanSnow TitanSnow commented Jun 3, 2018

But GitHub uses MagicPython to highlight "pycon":
4

And MagicPython provides "python-console.cson":

'scopeName': 'text.python.console'

@1st1
Copy link
Member

@1st1 1st1 commented Jun 3, 2018

Hm, OK, we'll take a look :)

@1st1 1st1 reopened this Jun 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.
X Tutup