MagicStack / MagicStack/MagicPython

Multiline string in Python Console is not highlighted properly

未关闭
#136 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
JavaScript
星标
1.4k
派生
98
PR 合并指标
30 天内没有已合并 PR

描述

* **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)

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

未指定源文件或测试。使用提供的 pycon 代码片段,在 Ubuntu 上通过 MagicPython 1.0.12 重现 Atom 1.27.1 中的高亮效果,然后与 Pygments 截图进行比较;当多行嵌入式 Lua 代码被正确高亮时即可完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
lua, python
领域
tooling
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。