Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Token highlighting for identifiers with Unicode

Đang mở
#1,531 0 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ệ
haskell
Lĩnh vực
frontend, web-dev

Hướng nghiên cứu

Bắt đầu bằng cách xem xét triển khai đã được thay đổi cho #1525 và tìm các biểu thức chính quy được sử dụng để tô sáng tiền cảnh và các token giống hệt nhau. Tái hiện trường hợp betáp/betűkkel, sau đó xác minh rằng phần tô sáng nền chỉ bao phủ toàn bộ mã định danh Unicode, đồng thời giữ nguyên hành vi tiền cảnh hiện có.

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

Mô tả

bug

Hi, Chris,

This is a followup on Issue #1525. That one fixed the colour deviation of Unicode characters in the display of identifiers (red instead of the surrounding black for ASCII).

In the original report I also mentioned the background colour for highlighting all the occurrences of the identifier currently under the cursor. While the foreground colour got fixed in #1525, the identical-token-highlighting (with background colour) did not.

To illustrate: #1525 fixed the token colouring issue, but not the "token highlighting" (of token under cursor) (with light-green background)
example-20210920
(With the cursor on betáp, the expectation would be to highlight all of it, and to not highlight the bet part of betűkkel).

I created this separate issue, because I suspect my comment on the already closed issue might go unnoticed.

I'd totally understand if this would be a a "won't fix" (because of Code Mirror dependency) or low priority, however, I figured given the experience gained with #1525, maybe this turns out to be a similarly minor patch, and someone just has to find the place where the regexes are defined. (I think it's strange to begin with, that the code is not shared with the foreground colour).

Ngôn ngữ chính
Haskell
Star
1.3k
Fork
201
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 google/codeworld

Tất cả issue của google/codeworld

Issue tương tự

Thêm issue về Haskell

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.