Skip to content

Don't match Tab characters #29

@cgay

Description

@cgay

cgay
I'm tempted to make the highlighter be opinionated about Tab characters, by not recognizing them at all. Opinions? Just allow everything that is legal and leave all style issues to the user?

housel
Can you highlight them in light pink or something?
I have Emacs set to show-trailing-whitespace (but I don't know if there's a way to highlight tabs per se)

cgay
I don't think that's possible because every \\s would need to instead be something that puts sequences of tabs into a group separate from the spaces and we don't know how many such groups there would be in a whitespace sequence. (Styles are assigned to regex groups.)
Oh, well we could highlight any whitespace sequence that contains a tab differently from ones that have only spaces. That would probably be sufficient.

housel
Sounds promising

cgay
I'll add it to the future features list.

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