Skip to content

(xml) line with single letter namespace prefix not highlighted since 10.4.0 #2957

@boghyon

Description

@boghyon

Are you using highlight or highlightAuto?
highlight

Sample Code to Reproduce

<abc:OK xmlns:abc="..." />
<ab:OK xmlns:ab="..." />
<a:FAIL xmlns:a="..." /> <!-- ← No syntax highlighting for you -->
<OK xmlns="..." />

https://jsbin.com/gexeyen/edit?html,js,output

output jsbin com_gexeyen(Moto G4)
output jsbin com_gexeyen(Moto G4) (2)

Expected behavior

<abc:OK xmlns:abc="..." />
<ab:OK xmlns:ab="..." />
<a:OK xmlns:a="..." />
<OK xmlns="..." />
<abc:OK xmlns:abc="..." />
<ab:OK xmlns:ab="..." />
<a:OK xmlns:a="...">
  <AllOK xmlns="..." />
</a:Ok>
<OK xmlns="..." />

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions