Inconsistent behavior between TextMateSharp and vs-code

Đang mở
#75 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ó
4/5
Thời gian dự kiến
3-5 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ệ
csharp
Lĩnh vực
devtools

Hướng nghiên cứu

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.

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

Mô tả

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:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. 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";
}

ascent.tmLanguage.json

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:
image

My code:
image

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.

Ngôn ngữ chính
C#
Star
170
Fork
35
Merge trung bình
2 giờ 52 phút
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 danipen/TextMateSharp

Tất cả issue của danipen/TextMateSharp

Issue tương tự

Thêm issue về C#

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.