Token highlighting for identifiers with Unicode
还没有人认领这个 Issue。
评估
调研方向
首先检查为 #1525 修改的实现,并定位用于前景高亮和相同 token 高亮的正则表达式。重现 betáp/betűkkel 情况,然后验证背景高亮仅覆盖完整的 Unicode 标识符,同时保留现有的前景行为。
由索引模型根据 Issue 内容生成。
描述
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)

(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).
- 主要语言
- Haskell
- 星标
- 1.3k
- 派生
- 201
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
google/codeworld 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 78/100
-
难度 4/5 3-5 天 新手友好度 35/100
-
难度 4/5 3-5 天 新手友好度 35/100
-
my solution未关闭
难度 4/5 3-5 天 新手友好度 25/100
-
难度 4/5 3-5 天 新手友好度 25/100
相似的 Issue
-
bug core-libs
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 2/5 1-3 小时 新手友好度 88/100
objectionary/phino#1951 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
ndmitchell/hlint#1710 ·
-
CJK text is italicized可能已有人在做 @daniel-gregg 于 2 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 75/100