This repository has been archived by the owner on Sep 20, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ruby/mri: ignore efm lines that start ...
If the line a ruby error occurs on is 'too long' it will truncate the line it displays in the error output and wrap it in `...`. This breaks %p from finding the correct column so this patch ignores lines starting with `...` e.g. %p working ``` ruby -w -T1 -c broken.rb broken.rb:2: syntax error, unexpected tIDENTIFIER, expecting $end puts sprintf "%d, %.2f, %.2f, %.2f, %d" k, v ^ ``` %p not working ``` ruby -w -T1 -c broken.rb broken.rb:2: syntax error, unexpected tIDENTIFIER, expecting $end ...tf "%d, %.2f, %.2f, %.2f, %d" k, v[:cost], v[:val], v[:carri... ... ^ ```
- Loading branch information