Skip to content

Commit 0066bd7

Browse files
committed
feature: create ocamllex filetype for mll files
1 parent 1f4bc32 commit 0066bd7

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ NeoBundleInstall ocaml/vim-ocaml'
1717
1818
" or use NeoBundleLazy
1919
NeoBundleLazy 'rgrinberg/vim-ocaml', {'autoload' : {'filetypes' :
20-
\ ['ocaml', 'ocamlinterface', 'dune', 'opam', 'oasis', 'omake', 'ocamlbuild_tags', 'sexplib']}}
20+
\ ['ocaml', 'ocamlinterface', 'ocamllex', 'dune', 'opam', 'oasis', 'omake', 'ocamlbuild_tags', 'sexplib']}}
2121
```
2222

2323
## History

ftdetect/ocaml.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
au BufNewFile,BufRead *.ml,*.mll,*.mly,.ocamlinit,*.mlt,*.mlp,*.ml.cppo setf ocaml
1+
au BufNewFile,BufRead *.ml,*.mly,.ocamlinit,*.mlt,*.mlp,*.ml.cppo setf ocaml

ftdetect/ocamllex.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
au BufNewFile,BufRead *.mll setf ocamllex

ftplugin/ocamllex.vim

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
" Language: OCamlLex
2+
" Maintainer: vim-ocaml maintainers
3+
" URL: http://www.github.com/ocaml/vim-ocaml
4+
5+
if exists("b:did_ftplugin")
6+
finish
7+
endif
8+
9+
runtime! ftplugin/ocaml.vim
10+
runtime! ftplugin/ocaml_*.vim ftplugin/ocaml/*.vim
11+
12+
" vim:sw=2 fdm=indent

0 commit comments

Comments
 (0)