aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.vim/autoload/neomake/makers/ft/matlab.vim
diff options
context:
space:
mode:
Diffstat (limited to 'dotfiles/.vim/autoload/neomake/makers/ft/matlab.vim')
-rw-r--r--dotfiles/.vim/autoload/neomake/makers/ft/matlab.vim15
1 files changed, 15 insertions, 0 deletions
diff --git a/dotfiles/.vim/autoload/neomake/makers/ft/matlab.vim b/dotfiles/.vim/autoload/neomake/makers/ft/matlab.vim
new file mode 100644
index 0000000..f208be6
--- /dev/null
+++ b/dotfiles/.vim/autoload/neomake/makers/ft/matlab.vim
@@ -0,0 +1,15 @@
+" vim: ts=4 sw=4 et
+
+function! neomake#makers#ft#matlab#EnabledMakers() abort
+ return ['mlint']
+endfunction
+
+function! neomake#makers#ft#matlab#mlint() abort
+ return {
+ \ 'args': ['-id'],
+ \ 'mapexpr': "neomake_bufname.':'.v:val",
+ \ 'errorformat':
+ \ '%f:L %l (C %c): %m,'.
+ \ '%f:L %l (C %c-%*[0-9]): %m,',
+ \ }
+endfunction