Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attribute value inaccurately highighted as plain string instead of an expression. #44

Open
thenbe opened this issue Nov 20, 2023 · 0 comments · May be fixed by #51
Open

Attribute value inaccurately highighted as plain string instead of an expression. #44

thenbe opened this issue Nov 20, 2023 · 0 comments · May be fixed by #51

Comments

@thenbe
Copy link

thenbe commented Nov 20, 2023

Expected

Given the following code snippet, both hrefs should be highlighted as expressions.

<script>
	const id = '123';
</script>

<a href="/todos/{id}"> first </a>

<a href={`/todos/${id}`}> second </a>

Actual

Only the second href is properly highlighted as an expression. The first href is inaccurately highlighted as a plain string.

Inspector view

first href (NOT OK)

2023-11-20-06-59-19

second href (OK)

2023-11-20-06-59-28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant