selected icon indicating copy to clipboard operation
selected copied to clipboard

Bug: Nested tags that include dash symbol (ionic html) and parent name, it highlights wrong tag.

Open tahaerden opened this issue 6 years ago • 2 comments

ion highlight

I'm having this issue where a nested tag that includes dash (-) symbol includes the parent tag name in it, highlight matches faulty, as seen on screenshot.

Here is a quick example if you cannot see the screenshot above. Assume the texts wrapped with ** are getting highlighted:

**<test>**
  <test-tag>**</test-tag>**
</test>

Atom : 1.42.0 Electron: 4.2.7 Chrome : 69.0.3497.128 Node : 10.11.0

atom-lint: deprecated (maybe update it in CONTRIBUTING.md ?) linter: 2.3.1

Whether using React editor: no

tahaerden avatar Dec 27 '19 14:12 tahaerden

Hmm. Using HTML for the grammar I cannot reproduce this. Any hints?

highlight

richrace avatar Jan 10 '20 16:01 richrace

Ok that's weird. I tried in both new empty file, and also in a couple of my angular/ionic html files.

I noticed when I open my angular html the issue persists. When I click on the HTML grammar on the bottom, it says Auto detect.

When I manually select HTML from the grammar list, the issue is gone. So I guess it only happens on auto-detect HTML grammar.

tahaerden avatar Jan 10 '20 17:01 tahaerden