textmate / html.tmbundle

TextMate support for HTML
76 stars 95 forks source link

`&` and `&&` should not be an error #98

Closed thomas-darling closed 5 years ago

thomas-darling commented 5 years ago

A single or double ampersand should not be highlighted as an error - it is perfectly valid. See: https://html.spec.whatwg.org/#character-reference-state

It is often used in binding expressions, as illustrated here, so this bug is quite annoying :-)

image Visual Studio Code 1.30.1

thomas-darling commented 5 years ago

@infininight This has been sitting here for a little while now, and you seem to be most active in here - so I was wondering if there's any chance you could take a look at this one? 🙂

infininight commented 5 years ago

This does not occur in TextMate so either the grammar version in VSCode is older or not being interpreted the same, will have to take the issue up with them.