You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tried restarting VS Code or running Vetur: Restart VLS
Info
Platform: Linux
Vetur version: v0.33.0
VS Code version: 1.54.0
Problem
Some patterns seem to break the syntax highlight for the whole file (I'm using "Single File Components"), more specifically it appears that these cases are problematic (but still valid pug syntax):
if the left-side of the affectation is alphabetical-only and the first word of the right-side is "type" and there are some other words afterwards.
if the the left-side of the affectation is not alphabetical-only and there is no space before the closing )
if the left-side of the affectation is not alphabetical-only and there is and affectation within ` ` and nothing else that would be delimited by a space
Reproducible Case
Call a simple component with a ... placehoder:
<templatelang="pug">
A(
...
)
</template>
Replace ... by one of the following:
a=type c=d
a=type :c=d e=f
@a=b) and remove the next/remaining )
:a=b) and remove the next/remaining )
:a=b :c=d) and remove the next/remaining )
@test=`a = b`
:test=`a = b`
:test=`a = ${b}`
:test=`a = b(c)`
:test=`a = b;`
:test=`a = b c = d`
You should be able to notice the problem.
Here are other similar examples that are currently working properly:
a=b
a=b)
a="b" c="d"
a="b" c=d
:a)
:a=b)
:a=b )
:a=b c=d)
:a=b c)
test=`a`
test=`${a}`
test=`a(b)`
test=`a = b`
test-test=`a = b`
test_test=`a = b`
:test=`a`
:test=`${a}`
:test=`a(b)`
:test=`a == b`
:test=`a === b`
:test=`a = b `
:test=`a = b c`
The text was updated successfully, but these errors were encountered:
Vetur: Restart VLS
Info
Problem
Some patterns seem to break the syntax highlight for the whole file (I'm using "Single File Components"), more specifically it appears that these cases are problematic (but still valid pug syntax):
if the left-side of the affectation is alphabetical-only and the first word of the right-side is "type" and there are some other words afterwards.
if the the left-side of the affectation is not alphabetical-only and there is no space before the closing
)
if the left-side of the affectation is not alphabetical-only and there is and affectation within
` `
and nothing else that would be delimited by a spaceReproducible Case
...
placehoder:...
by one of the following:a=type c=d
a=type :c=d e=f
@a=b)
and remove the next/remaining)
:a=b)
and remove the next/remaining)
:a=b :c=d)
and remove the next/remaining)
@test=`a = b`
:test=`a = b`
:test=`a = ${b}`
:test=`a = b(c)`
:test=`a = b;`
:test=`a = b c = d`
You should be able to notice the problem.
Here are other similar examples that are currently working properly:
a=b
a=b)
a="b" c="d"
a="b" c=d
:a)
:a=b)
:a=b )
:a=b c=d)
:a=b c)
test=`a`
test=`${a}`
test=`a(b)`
test=`a = b`
test-test=`a = b`
test_test=`a = b`
:test=`a`
:test=`${a}`
:test=`a(b)`
:test=`a == b`
:test=`a === b`
:test=`a = b `
:test=`a = b c`
The text was updated successfully, but these errors were encountered: