Inconsistent behavior between TextMateSharp and vs-code

Aperta
#75 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
csharp
Ambito
devtools

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
C#
Stelle
170
Fork
35
Merge medio
2h 52m
PR unite (30g)
1

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di danipen/TextMateSharp

Tutte le issue di danipen/TextMateSharp

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.