Sublime Text Blade Highlighting issue

Is @endphp an optional Blade tag? I’m noticing that in the new blade templates, when the @endphp tag is omitted, the syntax highlighting and autocompletion in Sublime Text does not work correctly. Basically, the editor treats everything following a @php tag as PHP code until you close it out with @endphp.

Is this an issue with the templates or with the syntax highlighter?

It’s an issue with the syntax highlighter

If you pass an expression to @php, then it will compile both an opening and closing tag with the expression in the middle. If no expression is passed, then it simply compiles a php opening tag.


I see! Thanks for clarifying that. I will open an issue on the syntax highlighter’s repo.