aboutsummaryrefslogtreecommitdiff
path: root/.vim/autoload/neomake/makers/ft/crystal.vim
blob: b570c7463574960ce03df0e9e524cd3c3422bb20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
function! neomake#makers#ft#crystal#EnabledMakers() abort
    return ['crystal', 'ameba']
endfunction

function! neomake#makers#ft#crystal#crystal() abort
    " from vim-crystal
    return {
        \ 'args': ['run', '--no-color', '--no-codegen'],
        \ 'errorformat':
                \ '%ESyntax error in line %l: %m,'.
                \ '%ESyntax error in %f:%l: %m,'.
                \ '%EError in %f:%l: %m,'.
                \ '%C%p^,'.
                \ '%-C%.%#'
        \ }
endfunction

function! neomake#makers#ft#crystal#ameba() abort
    " from vim-crystal
    return {
        \ 'args': ['--format', 'flycheck'],
        \ 'errorformat': '%f:%l:%c: %t: %m'
        \ }
endfunction
" vim: ts=4 sw=4 et