Inconsistent behavior between TextMateSharp and vs-code
还没有人认领这个 Issue。
评估
调研方向
Start by examining the supplied ascent.tmLanguage.json grammar and the TextMateSharp code path that applies it; the issue does not name a source file or test. Compare the scopes and colors produced for the reproduction snippet with VS Code, then use the mismatch to locate the relevant behavior. Done means the same grammar produces matching scopes and colors; the issue reports no follow-up resolution after its initial comments.
由索引模型根据 Issue 内容生成。
描述
Describe the bug
A clear and concise description of what the bug is.
The exact same syntax grammar in vscode does not produce the same output in TextMateSharp.
To Reproduce
Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Use the provided grammar file with the code
namespace Test;
using UnityEngine.*;
import testVector3 -> Vector3;
import object -> Component;
function Update()
{
/*
let x = 5 + 5;
let b = x;
*/
object.text = "hi";
}
Expected behavior
A clear and concise description of what you expected to happen.
I expected the colors and scopes shown to be the same.
Screenshots
If applicable, add screenshots to help explain your problem.
VSCode:
My code:
Desktop (please complete the following information):
- OS: Windows
- Version 11
Additional context
Add any other context about the problem here.
This is shoved into unity and then converted into highlighting with rich text tags.
- 主要语言
- C#
- 星标
- 170
- 派生
- 35
- 平均合并
- 2 小时 52 分钟
- 30 天内合并 PR
- 1
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
danipen/TextMateSharp 的其他 Issue
-
XML grammar: only the closing --> of a comment gets the scope comment.block.xml可能已有人在做 @alexeyfala 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
danipen/TextMateSharp#145 · 2 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
danipen/TextMateSharp#123 · 3 条评论 ·
-
难度 3/5 1-2 天 新手友好度 44/100
danipen/TextMateSharp#120 · 38 条评论 · 1 个 reaction ·
-
good first issue
难度 4/5 3-5 天 新手友好度 35/100
danipen/TextMateSharp#119 ·
-
难度 4/5 3-5 天 新手友好度 35/100
danipen/TextMateSharp#118 · 11 条评论 ·
查看 danipen/TextMateSharp 的全部 Issue
相似的 Issue
-
good first issue help wanted
难度 2/5 1-3 小时 新手友好度 85/100
Klyroo/klyroo-dashboard#12 ·
维护者通常 1 天内回复
-
CONTRIBUTING rules Node out in step 0, then tells client-side contributors to run node --test, which is what CI gates on可能已有人在做 @yadavraj2001 今天认领。 未关闭documentation good first issue
难度 1/5 1-3 小时 新手友好度 82/100
juandresrodca/AdminForge#73 · 1 条评论 ·
维护者通常 1 天内回复
-
[辞書] VIVANT未关闭要トリアージ 辞書
难度 1/5 1 小时以内 新手友好度 70/100
维护者通常 1 天内回复
-
enhancement good first issue
难度 1/5 1 小时以内 新手友好度 94/100
christian-raj/S-Aloha#504 ·
-
Issue: Feature Request Xenonid
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复