简体   繁体   中英

Sublime incorrectly highlighting php heredoc blocks as syntax error

So this isn't supposed to be happening:

在此处输入图片说明

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?

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). eg,

ST3:

PHP高亮模式下的Sublime Text 3

vs ST2:

PHP高亮模式下的Sublime Text 2

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM