https://bugs.kde.org/show_bug.cgi?id=467271
Bug ID: 467271 Summary: stacked here-docs confuse the highlighter Classification: Frameworks and Libraries Product: frameworks-syntax-highlighting Version: 5.103.0 Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: syntax Assignee: kwrite-bugs-n...@kde.org Reporter: o...@kde.org CC: walter.von.entfer...@posteo.net Target Milestone: --- as documented in https://perldoc.perl.org/perlop#EOF, it is possible to have multiple adjacent here-documents: ======== print <<"foo", <<"bar"; # you can stack them I said foo. foo I said bar. bar ======== this isn't highlighted properly - the second here-doc isn't treated as such, which of course leads to all kinds of "interesting" followup effects when it contains quotes, etc. for an example with some extra complexity, see https://github.com/git/git/blob/v2.39.2/git-send-email.perl#L843 (yes, github is bungling it, too :-D). -- You are receiving this mail because: You are watching all bug changes.