Sublime Forum

Syntax Highlight error for perfectly valid PHP code

#1

When calling a static method of a class whose instance is a property of a class whose instance is returned by a function, the syntax highlighting breaks from that line
Core()->helpers->open_grid() works while Core()->helpers::open_grid() breaks

here is the link to use the code for testing https://pastebin.com/XeFubSTm

0 Likes

Php script not working
#2

this has been fixed by https://github.com/sublimehq/Packages/pull/1588 but not released in a build of ST yet

0 Likes

#3

Any timeline for its release? Can I use it before the official release?

0 Likes

#4

the recent blog post says a dev build will be released this week.
Yes, just follow the instructions in the readme of that repo.

0 Likes

#5

Yes, got it working! Thanks :slight_smile:

0 Likes