TextMateSharp
TextMateSharp copied to clipboard
Inconsistent behavior between TextMateSharp and vs-code
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.
Please, could you check if https://github.com/danipen/TextMateSharp/pull/73 fixes the issue? Thanks!
Please, could you check if #73 fixes the issue? Thanks!
Unfortunately I'm already using that version ):