Add a function for getting matches, and use it to simplify a lot of code

This commit is contained in:
w0rp
2017-04-18 00:35:53 +01:00
parent e237add9fd
commit bdad25eefd
53 changed files with 224 additions and 411 deletions

View File

@@ -7,40 +7,28 @@ Execute(The shell handler should parse lines correctly):
AssertEqual
\ [
\ {
\ 'bufnr': 347,
\ 'lnum': 13,
\ 'text': 'syntax error near unexpected token d',
\ 'type': 'E',
\ },
\ {
\ 'bufnr': 347,
\ 'lnum': 7,
\ 'text': 'line 42: line 36:',
\ 'type': 'E',
\ },
\ {
\ 'bufnr': 347,
\ 'lnum': 11,
\ 'text': 'Syntax error: "(" unexpected',
\ 'type': 'E',
\ },
\ {
\ 'bufnr': 347,
\ 'lnum': 95,
\ 'text': 'parse error near `out=$(( $1 / 1024. )...',
\ 'type': 'E',
\ },
\ {
\ 'bufnr': 347,
\ 'lnum': 22,
\ 'text': ':11: :33: :44:',
\ 'type': 'E',
\ },
\ {
\ 'bufnr': 347,
\ 'lnum': 9,
\ 'text': '`done'' unexpected',
\ 'type': 'E',
\ },
\ ],
\ ale_linters#sh#shell#Handle(347, [