Merge pull request #73 from KabbAmine/fix-69

Modify shell's pattern to handle locals other than english, fixes #69
This commit is contained in:
w0rp 2016-10-09 20:59:25 +01:00 committed by GitHub
commit dea8af1e57

View File

@ -39,7 +39,7 @@ function! ale_linters#sh#shell#Handle(buffer, lines)
" "
" bash: line 13: syntax error near unexpected token `d' " bash: line 13: syntax error near unexpected token `d'
" sh: 11: Syntax error: "(" unexpected " sh: 11: Syntax error: "(" unexpected
let pattern = '^[^:]\+: \%(line \|\)\(\d\+\): \(.\+\)' let pattern = '^[^:]\+: \%(\w\+ \|\)\(\d\+\): \(.\+\)'
let output = [] let output = []
for line in a:lines for line in a:lines