-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: create ocamlinterface filetype for mli files
This is needed for supporting the tree-sitter parsers in ocaml because the interface parser is different from the implementation one one.
- Loading branch information
Showing
4 changed files
with
15 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
au BufRead,BufNewFile *.ml,*.mli,*.mll,*.mly,.ocamlinit,*.mlt,*.mlp,*.mlip,*.mli.cppo,*.ml.cppo set ft=ocaml | ||
au BufRead,BufNewFile *.ml,*.mll,*.mly,.ocamlinit,*.mlt,*.mlp,*.ml.cppo set ft=ocaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
au BufRead,BufNewFile *.mli,*.mlip,*.mli.cppo set ft=ocamlinterface |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
" Language: OCaml Interface | ||
" Maintainer: vim-ocaml maintainers | ||
" URL: http://www.github.com/ocaml/vim-ocaml | ||
|
||
if exists("b:did_ftplugin") | ||
finish | ||
endif | ||
|
||
runtime! ftplugin/ocaml.vim | ||
runtime! ftplugin/ocaml_*.vim ftplugin/ocaml/*.vim | ||
|
||
" vim:sw=2 fdm=indent |