Skip to content

Commit

Permalink
Split the ocaml filetype into several filetypes
Browse files Browse the repository at this point in the history
Now ocamlinterface ocamllex and menhir types must be taken into account
as well.

The filetypes are introduced by
ocaml/vim-ocaml#61
  • Loading branch information
undu committed May 16, 2021
1 parent e0f4648 commit 38090aa
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vim/merlin/ftplugin/menhir.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
" Activate merlin on current buffer
call merlin#Register()
2 changes: 2 additions & 0 deletions vim/merlin/ftplugin/ocamlinterface.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
" Activate merlin on current buffer
call merlin#Register()
2 changes: 2 additions & 0 deletions vim/merlin/ftplugin/ocamllex.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
" Activate merlin on current buffer
call merlin#Register()
9 changes: 9 additions & 0 deletions vim/merlin/syntax_checkers/ocaml/merlin.vim
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,12 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'ocaml',
\ 'name': 'merlin'})
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'ocamlinterface',
\ 'name': 'merlin'})
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'ocamllex',
\ 'name': 'merlin'})
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'menhir',
\ 'name': 'merlin'})

0 comments on commit 38090aa

Please sign in to comment.