Skip to content

Ignore match in certain syntax groups (e.g. C defines) #205

@dazzywi

Description

@dazzywi

Hello!
Firstly, thank you for this plugin - I've been using it extensively!

I have a problem for which I didn't find plausible solution after searching through this repository.

To be precise, I want to disable matching parentheses, curly brackets, etc within C define commands.
The reason for this behavior is that rainbow's own highlights will break vim syntax highlights (this is especially apparent in multi-line defines) as seen in example image below

Current behavior
Image

I want to keep highlights for all pairs of parentheses, brackets, etc while not matching ones in define statements. Example of desired behavior can be seen on image below

Desired behavior
Image

Can this be achieved just through configuration, or alternatively, a patch I can apply for this plugin?
Just as a note, I don't wish to completely disable matching for C filetype.

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