MagicStack / MagicStack/MagicPython

Inconsistent variable highlighting?

未關閉
#42 11 則留言 0 個 reaction 已指派 1 人 在 GitHub 檢視

@vpetrovykh 已經在處理了。

開始於 2016年5月16日。

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

描述

OS X 10.11.2, Sublime Text 3113, Gravity theme, latest MagicPython.

Trying out MagicPython from PythonImproved. In the first Python file I opened, I see:

screen shot 2016-05-13 at 17 54 30

`X_train` and `X_test` are highlighted purple, but `y_train` and `y_test` are white. Capitalizing the Y vars turns them purple.

I'm assuming that any word starting with a capital is treated as a "constant" and colored accordingly. Is this intentional? Wouldn't checking for ALL_CAPS be better?

貢獻指南

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

從這裡開始

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

評估

這個 Issue 還沒有評估資料。

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

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