Sublime Forum

Syntax Highlight Error after update Build 4186

#1

After update
Error loading syntax file “Packages/PHP/PHP.sublime-syntax”:
Apparent recursion within a with_prototype action: 25000 context sanity limit hit

0 Likes

#2

I’m seeing the same issue with the Django Syntax plugin (in HTML files, specifically).

0 Likes

#3

Does it happen in safe mode? Can you provide an example file that reproduces the issue?

0 Likes

#4

Plain PHP

PHP uses push...with_prototype only to support regexp patterns in strings, which is known to be safe.

I’d suggest checking for possible out-dated PHP package overrides. A loong time ago, PHP used to use that strategy to combine HTML and PHP source, which already caused that kind of issues back in the days.

I even just about to work on/with PHP Blade templates, which extend PHP and still work fine on ST4186/87

Django Syntax

With Django Syntax this is still true today. This kind of implementation no longer works due to complexity all involved syntaxes reached.

I’d suggest to use Jinja2 instead, which uses an up-to-date implementation.

1 Like