Skip to content

[Bug] Interrupted syntax highlighting when some specific characters in html template #55

@lukasmatourek

Description

@lukasmatourek

Hello,

I've noticed, that when I have HTML content in some *.component.html file, sometimes happens that the syntax highlighting will stop working when there is some special character like & or @. The example code where this is happening:

<div class="row">
  <div class="col">
    <div class="information">
      <p>
        Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem & Ipsum has been the industry's
        standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make
        a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting,
        remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing
        Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions
        of Lorem Ipsum.
      </p>
      <p>
      Lorem Ipsum is simply dummy text of the printing and typesetting industry.
      </p>
    </div>
    <div style="display: block; margin: 30px auto 40px auto; text-align: center">
      <a
        href="{{ orderSpaceLink }}"
        target="_blank"
      >
        <button bciPrimaryButton>Order Space</button>
      </a>
    </div>
  </div>
</div>

OS: Ubuntu 24.04.2 LTS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions