Stillat / vscode-antlers-language-server

Provides rich language features for Statamic's Antlers templating language, including code completions, syntax highlighting, and more.
https://antlers.dev
MIT License
36 stars 3 forks source link

[Syntax Higlight] handle variable as HTML tag #91

Open jimblue opened 2 months ago

jimblue commented 2 months ago

Which Antlers Toolbox products are you requesting a feature for?

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Sometimes, it's necessary to use a different HTML tag depending on the context. For exemple, the following card component, could have a card_html_tag that is a div or an article:

<{{ card_html_tag }} class="card">
    <h2>Card Title</h2>
</{{ card_html_tag }}>

But for now, this break the syntax highlight:

Screenshot 2024-06-19 at 20 39 39