Skip to content

Ability to skip specific rules #1119

@iefserge

Description

@iefserge

Is there an existing issue for this?

  • I have searched the existing issues

What problem does this feature solve?

I'm looking for a way to speed up syntax highlighting and lexing. In my case, since I'm only actually highlighting keywords, comments and strings, I'm thinking a lot of other regexes can be skipped.

What feature do you propose?

Would it be a good idea to add an option to skip rules/token types? If this makes sense, I'm willing to work on this, would appreciate any pointers on where to look as well.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions