duyluonglc/vscode-edge

Syntax Highlighting Within HTML Attributes

Closed this issue · 2 comments

When using dynamic blocks within an attribute (inside the quotes, ""), the block takes on the scope of an HTML string, specifically string.quoted.double.html. For example:

<input value="{{ old('title', '') }}">

The block inside the value attribute, {{ old('title', '') }}, is all the same color, as if it were a string.

I've attached an image that shows how it's rendered in VSCode (on top) and in Sublime (on bottom).

code example of Edge syntax coloring comparing VSCode and Sublime

I know these examples use Adonis specific view helpers but thought I could use them as an example of the issue.

Thanks!

@sikthought check v0.2

Awesome!