Chained methods and properties on expressions

Đang mở
#107 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
35/100
Loại issue
Lỗi
Độ 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 by reproducing the highlighting with the supplied PowerShell samples in Sublime and compare the regions assigned to Split(), Trim(), and the two .bar expressions. Trace the syntax rules handling chained methods and parenthesized expressions; done means each corresponding method or property receives the same region type.

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

Mô tả

bug scope-change

Moving from https://github.com/SublimeText/PowerShell/issues/68
And https://github.com/SublimeText/PowerShell/issues/77

Environment
  • Editor and Version (VS Code, Atom, Sublime): Sublime
  • Your primary theme: Default
Issue Description

There is inconsistency in the chained methods:

$users.Split(",").Trim()

Split and Trim get 2 different regions.

Same applies for

$foo.bar

vs

($foo).bar
Screenshots

image

Expected Behavior
  • Trim() and Split() should be the same region type
  • .bar in first and second case should be the same region type
Code Samples
$users.Split(",").Trim()

$foo.bar
($foo).bar
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.