MagicStack / MagicStack/MagicPython
Decorator Syntax Errors
還沒有人認領這個 Issue。
- 主要語言
- JavaScript
- 星號
- 1.4k
- 分支
- 98
- PR 合併指標
- 30 天內沒有已合併 PR
描述
So decorators have very strict syntax, while in reality, any valid python expression can be used when decorating. See github's highlighting below too.
* **Editor name and version**: Sublime Text 4152
* **Platform**: MacOSX
* **Color scheme**: Custom, but any
* **MagicPython version**: v.1.1.1
* **A sreenshot**:
* 
* **5-10 lines of surrounding code**:
```python
class A:
@D[C][prtl]
def a(self):
pass
@a | b | c
def a(self):
pass
```
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
首先,在 Sublime Text 中使用 MagicPython v1.1.1 重現兩個裝飾器範例,並將其醒目顯示結果與 GitHub 的結果進行比較。接著,在 repository 中找到裝飾器語法醒目顯示的進入點,並確認是否已有針對裝飾器的測試。兩個有效運算式都能在沒有語法錯誤的情況下以裝飾器形式醒目顯示時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- javascript, python
- 領域
- tooling
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100