In Sublime Text 3, I’m try to write a file_regex
to capture the following error message:
/path/to/file.hs:86:22: warning: [-Wname-shadowing]
This binding for ‘myvar’ shadows the existing binding
imported from ‘My.Module’ at /path/to/file.hs:29:1-30
(and originally defined
at /path/to/file.hs:347:1-5)
File, column and line are easy, but how do I capture the error message (This binding for ‘myvar’ shadows the existing binding
) which is on the second line?
I’m having trouble with it because file_regex
doesn’t seem to support multi-line regexes.
What can I do?