Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent behavior between TextMateSharp and vs-code #75

Open
Futuremappermydud opened this issue Aug 27, 2024 · 2 comments
Open

Inconsistent behavior between TextMateSharp and vs-code #75

Futuremappermydud opened this issue Aug 27, 2024 · 2 comments

Comments

@Futuremappermydud
Copy link

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.

@danipen
Copy link
Owner

danipen commented Sep 5, 2024

Please, could you check if #73 fixes the issue? Thanks!

@Futuremappermydud
Copy link
Author

Please, could you check if #73 fixes the issue? Thanks!

Unfortunately I'm already using that version ):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants