diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2019-12-31 14:05:09 +0100 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2019-12-31 14:05:09 +0100 |
commit | b8a5504021e0d21310bc603855ac8107828b5759 (patch) | |
tree | 2f2bf182b686597e7cc4c4f1b7d35881f9993f55 /syntax/ocpbuild.vim | |
parent | cea0d08a062478503814e51aa21c6486a0dd1b21 (diff) | |
download | vim-polyglot-b8a5504021e0d21310bc603855ac8107828b5759.tar.gz vim-polyglot-b8a5504021e0d21310bc603855ac8107828b5759.zip |
Update
Diffstat (limited to 'syntax/ocpbuild.vim')
-rw-r--r-- | syntax/ocpbuild.vim | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/syntax/ocpbuild.vim b/syntax/ocpbuild.vim new file mode 100644 index 00000000..98b0ab3c --- /dev/null +++ b/syntax/ocpbuild.vim @@ -0,0 +1,54 @@ +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ocaml') == -1 + +" Vim syntax file +" Language: ocp-build files +" Maintainer: Florent Monnier +" Latest Revision: 14 September 2013 + +if exists("b:current_syntax") + finish +endif + +syn keyword ocpKeywords begin end pack +syn keyword ocpKeywords if then else + +syn keyword ocpBlockKind library syntax objects program test + +syn keyword ocpFields files generated dirname archive +syn keyword ocpFields requires bundle +syn keyword ocpFields tests test_dir test_args test_benchmark +syn keyword ocpFields bytecomp bytelink link +syn keyword ocpFields has_asm nopervasives sort +syn keyword ocpFields comp ccopt byte has_byte +syn keyword ocpFields version authors license copyright +syn keyword ocpFields lib_files install installed + +syn keyword ocpPreProc test_exit ocp2ml env_strings +syn keyword ocpPreProc ocaml_major_version +syn keyword ocpPreProc system + +" Strings +syn region ocpString start=+"+ end=+"+ + +" Comments +syn keyword ocpTodo TODO XXX FIXME BUG contained +syn region ocpComment start="(\*" end="\*)" contains=ocpTodo + +" Usual Values +syn keyword ocpNumber None +syn keyword ocpNumber true +syn keyword ocpNumber false + +hi def link ocpTodo Todo +hi def link ocpComment Comment +hi def link ocpString String +hi def link ocpBlockKind Identifier +hi def link ocpNumber Number +hi def link ocpFields Structure +hi def link ocpKeywords Keyword +hi def link ocpPreProc PreProc + +let b:current_syntax = "ocpbuild" + + +endif |