Closed rturnq closed 1 year ago
Adding type annotation, specifically a :, to a tag parameter causes syntax highlighting to be incorrect from that point.
:
Syntax highlighting should not be affected outside of the type annotation.
Syntax highlighting is broken.
Add component with tag parameters (eg for) along with some additional markup
for
<div class="before">Before</div> <for|item| of=['']> <div class="within">Within</div> </for> <div class="after">After</div>
Add type annotation to attribute
<div class="before">Before</div> <for|item: string| of=['']> <div class="within">Within</div> </for> <div class="after">After</div>
Notice syntax highlighting is no longer correct following the type annotation.
Before:
After:
marko-vscode@0.17.34
Details
Adding type annotation, specifically a
:
, to a tag parameter causes syntax highlighting to be incorrect from that point.Expected Behavior
Syntax highlighting should not be affected outside of the type annotation.
Actual Behavior
Syntax highlighting is broken.
Steps to Reproduce
Add component with tag parameters (eg
for
) along with some additional markupAdd type annotation to attribute
Notice syntax highlighting is no longer correct following the type annotation.
Before:
After: