Even though the { is escaped, it's treated as embedded Perl 6 code in the string, and since there's no closing }, the highlight continues all the way to the second line and incorrectly highlights it as part of the string.
Workaround
Until this issue is fixed, a workaround is possible by adding a comment with }" after it, as in:
This sample code fails to highlight correctly:
Even though the
{
is escaped, it's treated as embedded Perl 6 code in the string, and since there's no closing}
, the highlight continues all the way to the second line and incorrectly highlights it as part of the string.Workaround
Until this issue is fixed, a workaround is possible by adding a comment with
}"
after it, as in: