Skip to content

[Bug]: xml comment uncompleted #263

Closed

Description

@JuniverseCoder

Describe the bug

when use xml language, if the comment is uncompleted, the application stuck.

To reproduce

  1. language: xml
  2. code:
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<!-- comment1 -->
<!-- comment2 -->
</settings>
  1. delete the arrow in comment1
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<!-- comment1 --
<!-- comment2 -->
</settings>
  1. cant type anything
  2. See error

Version

3.4.0

OS

Windows 10

Validations

Activity

  1. antonreshetov commented on Aug 29, 2022

    @antonreshetov
    Member

    Closed because it was in #268

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions