TextMateSharp icon indicating copy to clipboard operation
TextMateSharp copied to clipboard

Inconsistent behavior between TextMateSharp and vs-code

Open Futuremappermydud opened this issue 1 year ago • 2 comments
trafficstars

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.

Futuremappermydud avatar Aug 27 '24 01:08 Futuremappermydud

Please, could you check if https://github.com/danipen/TextMateSharp/pull/73 fixes the issue? Thanks!

danipen avatar Sep 05 '24 11:09 danipen

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

Unfortunately I'm already using that version ):

Futuremappermydud avatar Sep 05 '24 20:09 Futuremappermydud