Skip to content

wrong attribute matching if name contains "-" #22

@dorny

Description

@dorny

Hi,

when attribute name contains "-", only second part is highlighted.
For example: in "data-bind" only "bind" si matched and highlighted

problem is here:
"patterns": [
{ "name": "attributes.tag.jade",
"begin": "([a-z]\w+)(=)",

should be:
"patterns": [
{ "name": "attributes.tag.jade",
"begin": "([a-z][A-Za-z0-9_-]+)(=)",

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