MagicStack / MagicStack/MagicPython

ST4 loading error: Error in regex

未關閉
#242 2 則留言 5 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

主要語言
JavaScript
星號
1.4k
分支
98
PR 合併指標
30 天內沒有已合併 PR

描述

* **Editor name and version**:
* SublimeText4: 4121
* **Platform**:
* Ubuntu 20.10
* **Color scheme**:
* any: monokau, matherialUi, MaterialUiImproved
* **MagicPython version**:
* 1.1.1
* **A sreenshot**:
* **5-10 lines of surrounding code**:
The error:

```
error: Error loading syntax file "Packages/MagicPython/grammars/MagicPython.tmLanguage": Error in regex: target of repeat operator is invalid in regex (?x)
(.+?)
(
(?# .* and .*? in multi-line match need special handling of
newlines otherwise SublimeText and Atom will match slightly
differently.

The guard
```

Since the regex is very common in the tmlanguage I'm confused in ways to solve this...

Syntax is not highlighted((

貢獻指南

這個儲存庫沒有索引到貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

從 grammars/MagicPython.tmLanguage 開始,在回報的環境中於 Sublime Text 4 重現載入錯誤。追蹤錯誤中顯示的無效 regex 結構,並確認之後語法檔案能夠載入且 Python 語法醒目提示正常運作。

由索引模型根據 Issue 內容生成。

評估

領域
tooling
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
需要釐清
新手友好度
25/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。