summaryrefslogtreecommitdiffstats
path: root/syntax/ocpbuild.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/ocpbuild.vim')
-rw-r--r--syntax/ocpbuild.vim54
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