Skip to content

Inconsistent behavior between TextMateSharp and vs-code  #75

Open
@Futuremappermydud

Description

@Futuremappermydud

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions