Skip to content

Conversation

N1ebieski
Copy link
Contributor

@danie-ramdhani
Copy link

oh yeah. cool stuff dude 👏

before:
before

after:
after

i wonder why blade heredoc/nowdoc is not highlighted in blade file 🤔

before:
before2

after:
after2

@N1ebieski
Copy link
Contributor Author

N1ebieski commented Mar 7, 2025

@danie-ramdhani

i wonder why blade heredoc/nowdoc is not highlighted in blade file

Because there is no such heredoc/nowdoc in the https://github.com/laravel/vs-code-extension/blob/main/syntaxes/blade.tmLanguage.json#L1035-L1664 file. What's the difference between <<<HTML and <<<BLADE ? Concatenating string variables via {{ }} ?

@danie-ramdhani
Copy link

danie-ramdhani commented Mar 7, 2025

@danie-ramdhani

i wonder why blade heredoc/nowdoc is not highlighted in blade file

Because there is no such heredoc/nowdoc in the https://github.com/laravel/vs-code-extension/blob/main/syntaxes/blade.tmLanguage.json#L1035-L1664 file. What's the difference between <<<HTML and <<<BLADE ? Concatenating string variables via {{ }} ?

yep! especially for livewire inline/volt component or laravel blade render facade.

image

@N1ebieski
Copy link
Contributor Author

@danie-ramdhani so the problem with blade heredoc/nowdoc in only in blade files, right?

I've created a separate PR for this #316

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: <<<'JS' heredoc in blade file spoils syntax highlighting

2 participants