Highlight parameter names after function invocation
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- powershell
- Lĩnh vực
- tooling
Hướng nghiên cứu
Start in powershell.tmLanguage.json and inspect the existing rules for operators, numeric constants, and command arguments. Try the examples from the issue, including Get-ChildItem parameters and switch -Regex, while checking that negative integers retain their current highlighting. Done means parameter names such as Path, Recurse, and Regex are highlighted without overriding operator or numeric scopes.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Given Get-ChildItem -Path . -Recurse I cannot find a way to highlight "Path" and "Recurse". Currently I've only managed to highlight the -. The same goes for say "regex" in switch -Regex () {}.
It's gross but surly something like \\s\\-(?!(?i:[ic]?(?:eq|ne|gt|lt|ge|le|not|isnot|is|f|as|like|notmatch|match|notcontains|contains|in|and|or|xor|join|split|band|bor|bnot|bxor|replace))\\s)\\w+ would cover it? Provided it didn't step on constant.numeric and override negative integer highlighting.
Playing around on my own computer and adding this to powershell.tmLanguage.json:
{
"match": "\\s\\-(?!(?i:[ic]?(?:eq|ne|gt|lt|ge|le|not|isnot|is|f|as|like|notmatch|match|notcontains|contains|in|and|or|xor|join|split|band|bor|bnot|bxor|replace))\\s)\\w+",
"name": "variable.parameter.powershell"
},
I get the desired result although there may be edge cases I am not considering...


- Ngôn ngữ chính
- PowerShell
- Star
- 151
- Fork
- 55
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của PowerShell/EditorSyntax
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
PowerShell/EditorSyntax#224 · 2 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
PowerShell/EditorSyntax#222 · 2 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
PowerShell/EditorSyntax#221 · 2 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
PowerShell/EditorSyntax#220 · 2 bình luận · 1 reaction ·
-
Issue-Bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
PowerShell/EditorSyntax#219 · 2 bình luận ·