Skip to content

Consider adopting a new XML grammar: XML comment bug due to deprecated atom/language-xml grammar #176193

Closed
@tobil4sk

Description

@tobil4sk

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.76.0
  • OS Version: Windows 11/Linux

Steps to Reproduce:

  1. Create a new xml document
  2. Paste the following xml, or any xml which contains a comment ending in ---> with more than 2 dashes
<test>
<!-- comment --->
</test>
  1. View the broken xml highlighting:
    image

This issue was previously reported here: in #58076 and #62221, however, the bug reports were moved to the atom/language-xml repository. Over there, a PR was eventually opened to solve the issue: atom/language-xml#101. However, since Atom is now discontinued, the PR will never be merged into the atom/language-xml repository.

To fix this bug, VSCode will have to switch to a different XML grammar, like for PHP (see #162707) and all the other grammars it uses from Atom.

Metadata

Metadata

Assignees

Labels

*as-designedDescribed behavior is as designedfeature-requestRequest for new features or functionalitygrammarSyntax highlighting grammar

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions