Skip to content

tag-generic-attribute-script doesn't allow underscores #121

@boughtonp

Description

@boughtonp

Atom highlighting breaks when there's an underscore in an attribute, even though CF allows this.

The fix is probably changing the match regex from \\b([a-zA-Z0-9:-]+)\\b to \\b([a-zA-Z0-9_:-]+)\\b (or just \\b([\w:-]+)\\b).

However, that permits numbers colons and hyphen at the start of an attribute, which are all disallowed, so it should be \\b([a-zA-Z_][a-zA-Z0-9_:-]*)\\b (or \\b([a-zA-Z_][\w:-]*)\\b).

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