diff options
author | w0rp <devw0rp@gmail.com> | 2016-10-19 23:42:00 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2016-10-19 23:42:00 +0100 |
commit | acb209aa11960211718b7cb9b55688e5be1adc63 (patch) | |
tree | 4276576b4dff1628a3f4c19f7498a83b1ca01bf1 | |
parent | 6df632218e7f3c80d6cb66164fd9282e8b34ac2d (diff) | |
download | ale-acb209aa11960211718b7cb9b55688e5be1adc63.zip |
Fix the D error parsing to handle output without column numbers.
-rw-r--r-- | ale_linters/d/dmd.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ale_linters/d/dmd.vim b/ale_linters/d/dmd.vim index c9e3a2c2..a0cbeb49 100644 --- a/ale_linters/d/dmd.vim +++ b/ale_linters/d/dmd.vim @@ -29,9 +29,9 @@ endfunction function! ale_linters#d#dmd#Handle(buffer, lines) " Matches patterns lines like the following: - " + " /tmp/tmp.qclsa7qLP7/file.d(1): Error: function declaration without return type. (Note that constructors are always named 'this') " /tmp/tmp.G1L5xIizvB.d(8,8): Error: module weak_reference is in file 'dstruct/weak_reference.d' which cannot be read - let l:pattern = '^[^(]\+(\([0-9]\+\),\([0-9]\+\)): \([^:]\+\): \(.\+\)' + let l:pattern = '^[^(]\+(\([0-9]\+\)\,\?\([0-9]*\)): \([^:]\+\): \(.\+\)' let l:output = [] for l:line in a:lines |