artagnon / vstwig

🈸 vscode extension for PHP Twig
MIT License
3 stars 0 forks source link

Twig comments in JS not hightlighted #4

Open enboig opened 1 year ago

enboig commented 1 year ago

When commenting code with {# ... #} in JS code, it is not highlighted.

artagnon commented 6 months ago

Hi @enboig, could you kindly share some more details? Are you working on a .js file or a .twig file with inline js?

enboig commented 6 months ago

The problem happens with a .twig file: image

I created a new file to test formatting, and comment is colorized after moving it

<html>
<head>
<script>
functon a() {
{# just a console log #}
console.log("lorem ipsum");
}
</script>
</head>
<body>
</body>
</html>

image

image