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
Expression syntax highlighting doesn't seem to respect comments #158
update-rust-toolchain:
runs-on: ubuntu-latest# Don't run on forks; will attempt to create a PR into the fork...# if: ${{ !github.event.pull_request.head.repo.fork }}
changed the title [-]`if` expression syntax highlighting doesn't seem to respect comments[/-][+]Expression syntax highlighting doesn't seem to respect comments[/+]on May 8, 2023
Currently we always syntax highlight expressions in comments, that's not just limited to if expressions. It's due to the way we inject into the yaml grammar.
Since adding GitHub Actions Workflows as a separate language we could modify the yaml tm grammar if we wanted to.
Activity
[-]`if` expression syntax highlighting doesn't seem to respect comments[/-][+]Expression syntax highlighting doesn't seem to respect comments[/+]cschleiden commentedon May 8, 2023
Currently we always syntax highlight expressions in comments, that's not just limited to
ifexpressions. It's due to the way we inject into the yaml grammar.Since adding
GitHub Actions Workflowsas a separate language we could modify the yaml tm grammar if we wanted to.muzimuzhi commentedon May 9, 2023
Did you mean "as a separate language"?
scott-doyland-burrows commentedon May 31, 2023
I noticed this as well, this just looks odd:
The entire comment should be shown in green, in my opinion.