onecentlin / laravel-blade-snippets-vscode

Laravel blade snippets and syntax highlight support for Visual Studio Code
MIT License
138 stars 38 forks source link

Add syntax highlighting to heredoc/nowdoc #142

Open heyjoe1984 opened 3 years ago

heyjoe1984 commented 3 years ago

I can use HTML nowdoc right now and it highlights the HTML but not the BLADE in php files:

Changing nowdoc to BLADE and I get no highlighting at all.

I tried forking and changing some of the tmLanguage values but no matter what I try it will just not highlight inside nowdoc.

In the inspector, it says nowdoc has these:

punctuation.section.embedded.begin.php
meta.embedded.html
string.unquoted.nowdoc.php
meta.class.body.php
meta.class.php
source.php
meta.embedded.block.php
text.html.php

Anyone have any idea how we can get this extension to work with PHP heredoc/nowdoc in non-.blade.php files?