yasuhiroki / github-actions-yaml.vim

Vim plugin for GitHub Actions (yaml file)
MIT License
31 stars 3 forks source link

Highlight CI variables ${{ }} even when inside strings #8

Open Svalorzen opened 3 months ago

Svalorzen commented 3 months ago

The ${{ and }} symbols are correctly highlighted, but not when in a string. It would be nice to easily detect when a string contains a workflow variable by always adding colors for those symbols (and perhaps de-coloring the text between them).

Example:

env:
    CONFIG_VALUE: "matrix_os=${{ matrix.os == 'Windows' || '' }}"
yasuhiroki commented 2 months ago

@Svalorzen

In my Vim, ${{ }} are highlighted when in string.

image

Could you share what you see on your end?