AdguardTeam / AdguardTeam/VscodeAdblockSyntax

More thorough testing of TMLanguage

Abierto
#133 1 comentario 0 reacciones 1 asignado Reclamado por @maximtop Ver en GitHub
Priority: P4
Lenguaje dominante
TypeScript
Estrellas
88
Forks
8
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

Tester should throw an error if the TMLanguage file is not structured correctly or if any regular expression is syntactically incorrect.
For both scenarios, the error message should be explicit and include the specific location of the error, indicated by row and column numbers.

In practice, incorrect TMLanguage is usually simply ignored and tokenization does not work.

For details on the TMLanguage structure, refer to: https://macromates.com/manual/en/language_grammars

Here's an example of an invalid regular expression:
```yaml
match: |-
(?x)
(##) # we often match separators, but in this case, first # in the separator considered as a comment - so we got an unbalanced parenthesis error
```

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.