danielchatfield/atom-jinja2

Multi-line shell script triggers wrong highlighting on next command

Closed this issue · 2 comments

raqua commented

Please see attached screenshot.
screenshot from 2016-04-04 13 02 51

Highlighting on line 29 is incorrect due to previous usage of "|" followed by commands (line 24-26).
This is Saltstack Jinja and it is otherwise valid code.

@raqua I'm a little confused, is this a Jinja template?

The grammar only provides syntax highlighting for the jinja part - it doesn't know about the rest.

raqua commented

Sorry, my bad, this is actually YAML, not Jinja. Those are used both in Salt and I got that mixed.