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
Currently, the embedded script sections of block scalars start at the first non-whitespace character and terminate at the last newline before another token starts, usually a list entry or anther mapping key. When using a different background color for embedded code, this doesn't look so nice. What I'f prefer is starting the embedded scope at the first character of the new line that the embedded code begins and end it at the last newline that still has content so that the separating newline does not get the scope. The former should be trivial, but the former will require branching (on each line ending). However, I consider that worth it because yaml pipeline files aren't that long generally and it's visually much more appealing.
It's arguably quite common to have the script block at the end of a list entry, with the entries separated by a blank line.
I addressed the leading whitespace in 00c4f67. The trailing separator line seems like it could be trickier, because currently it is part of an embed/escape pattern, so not sure how branching will be able to interact with that. PRs welcome.
Currently, the embedded script sections of block scalars start at the first non-whitespace character and terminate at the last newline before another token starts, usually a list entry or anther mapping key. When using a different background color for embedded code, this doesn't look so nice. What I'f prefer is starting the embedded scope at the first character of the new line that the embedded code begins and end it at the last newline that still has content so that the separating newline does not get the scope. The former should be trivial, but the former will require branching (on each line ending). However, I consider that worth it because yaml pipeline files aren't that long generally and it's visually much more appealing.
It's arguably quite common to have the script block at the end of a list entry, with the entries separated by a blank line.
Example (github):
Scheme rule (I only have a tmTheme one but it's easily adapted):
The text was updated successfully, but these errors were encountered: