Skip to content

long hex strings cause "Pattern uses more memory than 'maxmempattern'" #460

@patrick99e99

Description

@patrick99e99

I have a ruby file with arrays of long hex strings like:

      [
        '807622337adcad3a6a23434cfb61a99d4cadeb9539272acb4ab2e6ec2cdbadf19ab2f3a...(500+ chars)',
        '0998a92d01bb5d95eee4490eb6bdbc8ec473a2c9f10690888ebacb9f80aac6ea1d7f22c...(500+ chars)',
        'e69c7c2e34aba5a3a92b2c973b8e6a2ea4d5c93a8a1bf331db67af2da4cac39cb546538...(500+ chars)',
        'a461b1ab8cacaa56f8ee7634a65a69ae33209ce9789e4ea670aee7b5d3c5aa8641964c5...(500+ chars)',
      ]

As soon as these strings comes into view, I see: Pattern uses more memory than 'maxmempattern' and syntax highlighting gets broken and is turned off for the rest of the file.

I currently have set re=0 in my vimrc, and It seems if I change that to re=1, then this no longer happens (syntax highlighting stays on, no memory message), but it is painfully slow to cursor around when I am near those hex strings...

I tried increasing maxmempattern but then I get 'redrawtime' exceeded, syntax highlighting disabled

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions