micro icon indicating copy to clipboard operation
micro copied to clipboard

shell syntax highlighting fails with quote character in herestring

Open dicktyr opened this issue 3 weeks ago • 2 comments

works as expected without quotes

hs <<< sss
	abc
sss

but it fails if heredoc contains an odd number of unescaped quotes (single or double)

hs <<< sss
	ab'c
sss

dicktyr avatar Dec 04 '25 03:12 dicktyr

What you're referring to is a heredoc instead of a here string, right? And indeed #2953 didn't add support for a space in between of << and e.g. EOF.

JoeKar avatar Dec 07 '25 17:12 JoeKar

corrected, thank you

dicktyr avatar Dec 07 '25 19:12 dicktyr