Skip to content

if statement in comment not shown as comment (syntax highlighting) #259

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
AdamRaichu opened this issue Sep 9, 2023 · 0 comments · May be fixed by #468
Open

if statement in comment not shown as comment (syntax highlighting) #259

AdamRaichu opened this issue Sep 9, 2023 · 0 comments · May be fixed by #468
Labels
bug Something isn't working

Comments

@AdamRaichu
Copy link
Contributor

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.
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.

image

Extension Version
v0.26.2

Additional context
Add any other context about the problem here.

This seems slightly related to #158

@AdamRaichu AdamRaichu added the bug Something isn't working label Sep 9, 2023
@cdce8p cdce8p linked a pull request May 3, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Backlog 🗒
Development

Successfully merging a pull request may close this issue.

1 participant