lishu / vscode-svg2

A vscode svg langauge support extension
MIT License
200 stars 10 forks source link

extension breaks CDATA syntax highlight #142

Open jkozniewski opened 1 year ago

jkozniewski commented 1 year ago

The extension seems to break correct <![CDATA[ ... ]]> syntax highlight. Here is the sample with extension disabled:

Screenshot 2023-03-11 at 11 46 11

And here with extension enabled:

Screenshot 2023-03-11 at 11 46 35

(the namespace thing used in the surrounding tag does not make any difference, nor the type of content enclosed by CDATA nor if the closing ]]> is on the same line as <![CDATA[ or not)

jkozniewski commented 1 year ago

I've just updated to v1.5.1 and now the closing > is highlighted red (seems to indicate an error but no actual problem is reported)

Screenshot 2023-03-13 at 21 00 22

And another observation - related to <script> tag which also breaks the syntax colouring in such way:

Screenshot 2023-03-13 at 21 06 03