github-actions-yaml.vim icon indicating copy to clipboard operation
github-actions-yaml.vim copied to clipboard

Ignore pipes as string starters after `run:` tags

Open Svalorzen opened this issue 1 year ago • 1 comments

YAML normally uses pipes to delimit multi-line strings. In GitHub actions, however, they are used after run: tags in order to define multiple commands to run. However, even using this plugin, these groups of actions are still highlighted as strings, in other words all in a single color.

It would be nice if this plugin could prevent this behavior and leave general syntax highlighting on for those commands (basically what you'd get if you deleted the pipe symbols from the file).

Example:

run: |
    echo "${{ matrix.os }}"
    echo "string"

Svalorzen avatar Aug 07 '24 14:08 Svalorzen

@Svalorzen

Thank you for your report. In my Vim(MacVim), ${{ }} and matrix keyword are both correctly highlighted, as shown in the screenshot below:

image

Could you share what you see on your end?

yasuhiroki avatar Sep 04 '24 14:09 yasuhiroki