From 3e11cbd18da3852fab5dee3f743bc60dc87f0775 Mon Sep 17 00:00:00 2001 From: w0rp Date: Wed, 6 Feb 2019 18:05:13 +0000 Subject: Update syntax checking * Line continuation characters should be on the same lines. * .vim file line indentation should be a multiple of 4. --- ale_linters/crystal/ameba.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ale_linters/crystal') diff --git a/ale_linters/crystal/ameba.vim b/ale_linters/crystal/ameba.vim index 165cabd0..a1bf9c1d 100644 --- a/ale_linters/crystal/ameba.vim +++ b/ale_linters/crystal/ameba.vim @@ -14,7 +14,7 @@ endfunction " Handle output from ameba function! ale_linters#crystal#ameba#HandleAmebaOutput(buffer, lines) abort if len(a:lines) == 0 - return [] + return [] endif let l:errors = ale#util#FuzzyJSONDecode(a:lines[0], {}) @@ -32,7 +32,7 @@ function! ale_linters#crystal#ameba#HandleAmebaOutput(buffer, lines) abort let l:end_col = str2nr(l:error['end_location']['column']) if !l:end_col - let l:end_col = l:start_col + 1 + let l:end_col = l:start_col + 1 endif call add(l:output, { -- cgit v1.2.3