HashTable Key TextMate Scope Priority

Đang mở
#222 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
powershell
Lĩnh vực
devtools

Hướng nghiên cứu

Reproduce the example in VS Code with the shown PowerShell hashtable and inspect the TextMate scopes applied to keys and variables. Start by locating the syntax definitions for hashtable assignments and the variable scope precedence. Done means hash keys can receive a distinct color from variables without breaking the surrounding highlighting.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Summary of the new feature / enhancement
  1. Open VS Code
  2. Open a PowerShell File
  3. Copy the following into the file:
@{
    'string' = 'value'
    name     = funcName
    key      = $Variable
}

Result:
Image

Proposed technical implementation details (optional)

Currently the 'variable' TextMate scope is a higher precedence than the 'meta' scope so setting the meta.hashtable.assignment.powershell scope to a different color is overwritten by the variable scope.

Trying to get a the hash key to be a different color than variables

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

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của PowerShell/EditorSyntax

Tất cả issue của PowerShell/EditorSyntax

Issue tương tự

Thêm issue về DevTools

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.