onecentlin / laravel-blade-snippets-vscode

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

<x-slot:name> highlight #175

Closed solicomo closed 9 months ago

solicomo commented 1 year ago

<x-slot:name> now can be highlighted as normal tag instead of an error.

Details:

Include text.html.derivative instead of text.html.basic.

The derivative syntax can handle custom tags like <x-slot:slotname>. Instead of invalid.illegal.unrecognized-tag.html, this kind of tags will follow in scopes entity.name.tag.html and meta.tag.other.unrecognized.html.derivative.

The later will be highlighted as a normal tag, while the former one will be highlighted as an error.

solicomo commented 1 year ago

Will partially fix #148 .

The formatting issue needs to be fixed at project microsoft/vscode-html-languageservice