jskinner / DefaultPackages

Old bug tracker for Sublime Text's "Default Packages", e.g. bad syntax highlighting
http://web.archive.org/web/20150524043750/https://www.sublimetext.com/forum/viewtopic.php?f=2&t=12095
26 stars 2 forks source link

Less than operator not parsed correctly in syntax highlighting in multiline java comments #149

Closed bh3605 closed 8 years ago

bh3605 commented 9 years ago

The less than operator isn't being parsed correctly in /* / style of comments. Check out the picture below. If you have a '<' by itself it becomes yellow and if you have '<' followed by an alphanumeric character, the character that follows it will be highlighted teal and the '<' is highlighted magenta/that pinkish color.

capture

FichteFoll commented 9 years ago

For some details, it appears that the < is matched as the opening of a HTML tag. I don't know how exactly HTML is parsed in javadoc, but even if this is actually expected and the < should be escaped as &lt;, it should at least terminate on the end of the comment.

FichteFoll commented 8 years ago

Can not reproduce in 3104.