Skip to content

bat panics on Ruby files with unindented heredocs #914

@sharkdp

Description

@sharkdp

When calling bat on this Ruby file

<<END_DESC
Test
END_DESC

it panics with:

thread 'main' panicked at
  'regex string should be pre-tested: Error(-208, invalid backref number/name)',
  …/syntect-4.1.0/src/parsing/regex.rs:70:17

found with the Python script in #913.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions