github / github/vscode-github-actions

Syntax highlight error: Did not highlight comment after string value

未关闭
#531 1 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
TypeScript
星标
660
派生
213
PR 合并指标
30 天内没有已合并 PR

描述

**Describe the bug**

In the screenshot below, the comment `# Cache causes errors on macOS` wasn't highlighted as comment.

screenshot

```yaml
- name: Cache
uses: actions/cache@v4
timeout-minutes: 2
continue-on-error: true
if: matrix.os != 'macos-latest' # Cache causes errors on macOS
with:
path: |
~/.cargo
target
key: ${{ github.job }}-${{ runner.os }}-${{ hashFiles('rust-toolchain') }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ github.job }}-${{ runner.os }}-${{ hashFiles('rust-toolchain') }}-${{ hashFiles('**/Cargo.lock') }}
${{ github.job }}-${{ runner.os }}-${{ hashFiles('rust-toolchain') }}-
```

**To Reproduce**

Already provided

**Expected behavior**

Highlight comment as comment

**Screenshots**

Already provided

**Extension Version**
`v1.28.1`

**Additional context**
Add any other context about the problem here.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。