Sublime Forum

PHP Syntax broken

#1

I think this broke in 4143, but might have been 4142.

The PHP syntax handling has changed, and believes a php close tag ?> ends PHP within a PHP block comment /* … */

This isn’t how the PHP interpreter interprets it.
This breaks not only code highlighting but also goto-reference and other similar features

Example broken highlighting
image

0 Likes

#2

Here’s an example of how it should be interpreted (I’ve inserted a space to break the PHP close tag)
image

0 Likes

#3

This issue has already been fixed internally and will hopefully be shipped with the next release.

0 Likes

#4

Awesome! Thanks :smile:

I guess my search didn’t find it because it was already closed :man_facepalming:

Is there an ETA on that release?

0 Likes

#5

Also topic names in forum are sometimes misleading.

ETA can be answered by sublimehq only.

0 Likes