microsoft / microsoft/TypeScript-Sublime-Plugin
Typescript syntax highlighting issue
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- JavaScript
- Estrellas
- 1.7k
- Forks
- 236
- Merge medio
- 21 d 13 h
- PR fusionados (30 d)
- 1
Descripción
Hi! I found a syntax highlighting condition that breaks highlighting for all subsequent blocks of code. Please let me know if you need more information.
Sublime Text 3: 3.2.1 build 3207
TypeScript plugin: v3.4.1
Image:

Code:
if (something) {
// if the function param is broken onto a new line then the following block's syntax is highlighted correctly
_.each([], (item) => {
if (item) { count++; }
});
}
// here to demonstrate that syntax highlighting works as expected
if (invalid) {
let something = true;
const something = true;
this.something = true;
}
// the problematic line has to be within a block to demonstrate the issue
if (something) {
// if the function param is all in one line then the following blocks lose syntax highlighting
_.each([], (item) => { if (item) { count++; } });
// sytax highlighting still works for the current block
let something = true;
const something = true;
this.something = true;
}
// here to demonstrate that syntax highlighting does NOT work as expected
if (invalid) {
let something = true;
const something = true;
this.something = true;
}
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Reproduce el problema en Sublime Text 3 build 3207 con el plugin de TypeScript v3.4.1 usando el código de ejemplo proporcionado y compara las dos formas de _.each. Sigue el manejo del resaltado de sintaxis del plugin para el callback inline y verifica que el resaltado siga siendo correcto en los bloques posteriores.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- typescript
- Área
- tooling
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 45/100