github / github/vscode-github-actions
`if` statement in comment not shown as comment (syntax highlighting)
- Lenguaje dominante
- TypeScript
- Estrellas
- 660
- Forks
- 213
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:
1. Create a new workflow file and paste in the below code.
2. Observe how `if: ...` is highlighted incorrectly.
```yml
name: Example Workflow File
on:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: A fake step
run: echo Hello World
# This is a block comment
# The if: with a colon after it is not highlighted properly
# An if without a colon is fine.
```
**Expected behavior**
A clear and concise description of what you expected to happen.
The `if:` and following text should remain grey like a comment.
**Screenshots**
If applicable, add screenshots to help explain your problem.

**Extension Version**
`v0.26.2`
**Additional context**
Add any other context about the problem here.
This seems slightly related to #158
Guía de contribución
Línea de trabajo
Empieza reproduciendo el problema de resaltado en un archivo de workflow nuevo usando el ejemplo de YAML del issue, con extension v0.26.2. Compara los comentarios que contienen `if:` con los comentarios en los que `if` no tiene dos puntos; se considera terminado cuando el texto `if:` y el texto del comentario que le sigue permanecen en gris sin cambiar el resto del resaltado del workflow.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- typescript, vscode
- Á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