Skip to content

Commit 38090aa

Browse files
committed
Split the ocaml filetype into several filetypes
Now ocamlinterface ocamllex and menhir types must be taken into account as well. The filetypes are introduced by ocaml/vim-ocaml#61
1 parent e0f4648 commit 38090aa

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed

vim/merlin/ftplugin/menhir.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
" Activate merlin on current buffer
2+
call merlin#Register()
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
" Activate merlin on current buffer
2+
call merlin#Register()

vim/merlin/ftplugin/ocamllex.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
" Activate merlin on current buffer
2+
call merlin#Register()

vim/merlin/syntax_checkers/ocaml/merlin.vim

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,12 @@ endfunction
2121
call g:SyntasticRegistry.CreateAndRegisterChecker({
2222
\ 'filetype': 'ocaml',
2323
\ 'name': 'merlin'})
24+
call g:SyntasticRegistry.CreateAndRegisterChecker({
25+
\ 'filetype': 'ocamlinterface',
26+
\ 'name': 'merlin'})
27+
call g:SyntasticRegistry.CreateAndRegisterChecker({
28+
\ 'filetype': 'ocamllex',
29+
\ 'name': 'merlin'})
30+
call g:SyntasticRegistry.CreateAndRegisterChecker({
31+
\ 'filetype': 'menhir',
32+
\ 'name': 'merlin'})

0 commit comments

Comments
 (0)