diff options
author | Bram Moolenaar <Bram@vim.org> | 2007-05-05 17:54:07 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2007-05-05 17:54:07 +0000 |
commit | 9964e468c0209f6b8286e0b08109817c845a3079 (patch) | |
tree | 3c53288cff0d4c2e32169d8eb4cd53cc343ad0bc /runtime/syntax/ocaml.vim | |
parent | d5ab34bd5ecc748d5502f149c476968e5ec2b7c9 (diff) | |
download | vim-git-9964e468c0209f6b8286e0b08109817c845a3079.tar.gz |
updated for version 7.1a
Diffstat (limited to 'runtime/syntax/ocaml.vim')
-rw-r--r-- | runtime/syntax/ocaml.vim | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/runtime/syntax/ocaml.vim b/runtime/syntax/ocaml.vim index cdef8c38b..27eb3907e 100644 --- a/runtime/syntax/ocaml.vim +++ b/runtime/syntax/ocaml.vim @@ -5,9 +5,9 @@ " Karl-Heinz Sylla <Karl-Heinz.Sylla@gmd.de> " Issac Trotts <ijtrotts@ucdavis.edu> " URL: http://www.ocaml.info/vim/syntax/ocaml.vim -" Last Change: 2006 Apr 11 - Fixed an initialization bug (MM) -" 2005 May 18 - Added 'NOTE' to highlighted comment words (MM) -" 2005 Apr 14 - Fixed a small bug concerning 'include' (MM) +" Last Change: 2007 Apr 13 - Added highlighting of nativeints (MM) +" 2006 Oct 09 - More highlighting improvements to numbers (MM) +" 2006 Sep 19 - Improved highlighting of numbers (Florent Monnier) " A minor patch was applied to the official version so that object/end " can be distinguished from begin/end, which is used for indentation, @@ -30,6 +30,9 @@ syn match ocamlComment "^#!.*" " Scripting directives syn match ocamlScript "^#\<\(quit\|labels\|warnings\|directory\|cd\|load\|use\|install_printer\|remove_printer\|require\|thread\|trace\|untrace\|untrace_all\|print_depth\|print_length\)\>" +" Script headers highlighted like comments +syn match ocamlComment "^#!.*" + " lowercase identifier - the standard way to match syn match ocamlLCIdentifier /\<\(\l\|_\)\(\w\|'\)*\>/ @@ -213,11 +216,11 @@ else syn match ocamlOperator "<-" endif -syn match ocamlNumber "\<-\=\d\+[l|L]\?\>" -syn match ocamlNumber "\<-\=0[x|X]\x\+[l|L]\?\>" -syn match ocamlNumber "\<-\=0[o|O]\o\+[l|L]\?\>" -syn match ocamlNumber "\<-\=0[b|B][01]\+[l|L]\?\>" -syn match ocamlFloat "\<-\=\d\+\.\d*\([eE][-+]\=\d\+\)\=[fl]\=\>" +syn match ocamlNumber "\<-\=\d\(_\|\d\)*[l|L|n]\?\>" +syn match ocamlNumber "\<-\=0[x|X]\(\x\|_\)\+[l|L|n]\?\>" +syn match ocamlNumber "\<-\=0[o|O]\(\o\|_\)\+[l|L|n]\?\>" +syn match ocamlNumber "\<-\=0[b|B]\([01]\|_\)\+[l|L|n]\?\>" +syn match ocamlFloat "\<-\=\d\(_\|\d\)*\.\(_\|\d\)*\([eE][-+]\=\d\(_\|\d\)*\)\=\>" " Labels syn match ocamlLabel "\~\(\l\|_\)\(\w\|'\)*"lc=1 @@ -294,6 +297,7 @@ if version >= 508 || !exists("did_ocaml_syntax_inits") HiLink ocamlModPreRHS Keyword HiLink ocamlMPRestr2 Keyword HiLink ocamlKeyword Keyword + HiLink ocamlMethod Include HiLink ocamlFunDef Keyword HiLink ocamlRefAssign Keyword HiLink ocamlKeyChar Keyword |