You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
if statement in comment not shown as comment (syntax highlighting) #259
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Create a new workflow file and paste in the below code.
Observe how if: ... is highlighted incorrectly.
name: Example Workflow Fileon:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-lateststeps:
- name: A fake steprun: 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.
Activity
Avasam commentedon Nov 24, 2025
Duplicate of #158 ?