{
// This gets highlighted as a multiline string, but it should not be:
foo1: |
bar
|;
// This too:
foo2: | bar |;
// This too:
foo3: = |||||
bar
|||||;
// This one gets interrupted at the | in the middle, and the rest of
// the file gets highlighted as a string until another | shows up:
foo4: |||
bar | this text should still be inside the triple-pipe string
|||;
// this line should be a comment but it's highlighted as a string?
// if I add a single | it ends the incorrect string match
// now it's back to normal and this is a comment again
}
Some examples:
here's what that looks like in a screenshot: