-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bat panics on Ruby files with unindented heredocs #914
Comments
This is caused by the block here: https://github.com/sublimehq/Packages/blob/f36b8f807d5f30d2b8ef639232a9fc5960f550fa/Ruby/Ruby.sublime-syntax#L1914-L1917 unindented-heredoc-end:
- match: ^\1$ # HEREDOC delimiter
scope: string.unquoted.heredoc.ruby punctuation.definition.string.end.ruby
pop: true This block seems to reference the heredoc name from the opening part heredoc-ruby:
- match: <<[-~]["`]?({{heredoc_type_ruby}})["`]?
scope: string.unquoted.heredoc.ruby punctuation.definition.string.begin.ruby
push: [heredoc-ruby-indented-interpolated, trailing-heredoc-start]
- match: <<[-~]'({{heredoc_type_ruby}})'
scope: string.unquoted.heredoc.ruby punctuation.definition.string.begin.ruby
push: [heredoc-ruby-indented-literal, trailing-heredoc-start]
- match: <<["`]?({{heredoc_type_ruby}})["`]?
scope: string.unquoted.heredoc.ruby punctuation.definition.string.begin.ruby
push: [heredoc-ruby-unindented-interpolated, trailing-heredoc-start]
- match: <<'({{heredoc_type_ruby}})'
scope: string.unquoted.heredoc.ruby punctuation.definition.string.begin.ruby
push: [heredoc-ruby-unindented-literal, trailing-heredoc-start] but for some reason, the |
this looks like an instance of trishume/syntect#104 to me |
Certainly seems like it - thank you for the reference! |
closed via #929 |
When calling
bat
on this Ruby fileit panics with:
found with the Python script in #913.
The text was updated successfully, but these errors were encountered: