Matt Lohkamp
Matt Lohkamp

Reputation: 2192

Sublime incorrectly highlighting php heredoc blocks as syntax error

So this isn't supposed to be happening:

enter image description here

That's a properly formatted heredoc, but it looks like Submlime sees<<<HTML as an unterminated <html> tag. Does anyone else have this issue? Is there a fix?

Upvotes: 0

Views: 603

Answers (1)

TML
TML

Reputation: 12966

According to this forum post, this is a bug in the TextMate language bundle, and the problem can fixed by either upgrading that bundle, or moving to ST3 (which appears to contain the newer bundle). e.g.,

ST3:

Sublime Text 3 in PHP Highlighting Mode

vs ST2:

Sublime Text 2 in PHP Highlighting Mode

Upvotes: 2

Related Questions