Argument mode vs Expression mode
還沒有人認領這個 Issue。
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 20/100
- Issue 類型
- 重構
- 描述清晰度
- 需要釐清
- 活躍度
- 停滯
- 技術堆疊
- powershell
- 領域
- tooling
研究方向
No files or tests are named. Start by reviewing the repository’s current syntax matches alongside PowerShell’s About Parsing reference and related issue #137. The work is done when argument mode and expression mode consistently scope operators, parameters, commands, and line continuations.
由索引模型根據 Issue 內容生成。
描述
For reference: Powershell Docs: About Parsing
The current syntax does not take in to account PowerShell's parsing, argument mode vs expression mode.
Lacking this is causing scoping of some operators when they should not be treated as such, and failure to scope operators when they should be treated as such, or properly scoping parameter tags vs commands that start with a '-', ect...
This actually would be a pretty large undertaking. It would probably go along with #137
This would probably require a reorganization of all the matches in to the repository, with the base match limited to just scanning the first token using a BEGIN with a forward lookup to sort out whether to run in expression or argument mode, ENDing at anywhere a line continuation isn't permitted, or otherwise at the end of a command (pipe, ';', etc) and this would require than any scoping that allows line continuation must also use BEGIN type matches to keep the parsing moving. The '&' could be a bit tricky, as it can be both the start of a command and the end of a command.
- 主要語言
- PowerShell
- 星號
- 149
- 分支
- 55
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
PowerShell/EditorSyntax 的其他 Issue
-
Tests fail on main branch可能已有人在做 @BryanCuneo 於 18 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 68/100
PowerShell/EditorSyntax#227 ·
-
難度 3/5 1-2 天 新手友好度 55/100
PowerShell/EditorSyntax#224 · 2 則留言 ·
-
難度 3/5 1-2 天 新手友好度 48/100
PowerShell/EditorSyntax#222 · 2 則留言 ·
-
難度 3/5 1-2 天 新手友好度 55/100
PowerShell/EditorSyntax#221 · 2 則留言 ·
-
難度 3/5 1-2 天 新手友好度 45/100
PowerShell/EditorSyntax#220 · 2 則留言 · 1 個 reaction ·
查看 PowerShell/EditorSyntax 的全部 Issue
相似的 Issue
-
needs-triage
難度 2/5 1-3 小時 新手友好度 62/100
stacklok/toolhive-catalog#1976 ·
維護者通常 1 天內回覆
-
status/need-triage
難度 2/5 1-3 小時 新手友好度 76/100
google-gemini/gemini-cli#30328 · 1 則留言 ·
維護者通常 1 天內回覆
-
in progress
難度 2/5 1-3 小時 新手友好度 79/100
manuscript-lang/manuscript#4385 ·
維護者通常 1 天內回覆
-
[hooks] SessionStart injects the knowledge-update frontmatter on a CRLF checkout可能已有人在做 @abhiramshaji-cyber 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 86/100
vercel/vercel-plugin#429 ·
維護者通常 1 天內回覆
-
scope: canons scope: cli type: ci
難度 2/5 1-3 小時 新手友好度 78/100
PAIR-code/canon-clerk#334 ·
維護者通常 1 天內回覆