rouge-ruby / rouge

A pure Ruby code highlighter that is compatible with Pygments
https://rouge.jneen.net/
Other
3.33k stars 735 forks source link

Allow quoteless continuations in Systemd #1899

Closed michaelherold closed 1 year ago

michaelherold commented 1 year ago

When continuing a command on the next line, Systemd's file format allows you to elide the quote if you're escaping the newline.

This change enables support for this syntax.

michaelherold commented 1 year ago

~Huh, TIL that Ruby 3 handles escapes a little differently than 2.7.~

🤦 This was from stylistic changes to single quotes to fit the rest of the code. Ignore this!

tancnle commented 1 year ago

Thank you for considering the suggestion, @michaelherold 🙇🏼 LGTM 🚀