Install vim74
[msysgit.git] / share / vim / vim74 / syntax / blank.vim
blob60251c966ca9e76bd08336dd41eaea7dc452484f
1 " Vim syntax file
2 " Language:     Blank 1.4.1
3 " Maintainer:   Rafal M. Sulejman <unefunge@friko2.onet.pl>
4 " Last change:  2011 Dec 28 by Thilo Six
6 " For version 5.x: Clear all syntax items
7 " For version 6.x: Quit when a syntax file was already loaded
8 if version < 600
9   syntax clear
10 elseif exists("b:current_syntax")
11   finish
12 endif
14 let s:cpo_save = &cpo
15 set cpo&vim
17 syn case ignore
19 " Blank instructions
20 syn match blankInstruction "{[:;,\.+\-*$#@/\\`'"!\|><{}\[\]()?xspo\^&\~=_%]}"
22 " Common strings
23 syn match blankString "\~[^}]"
25 " Numbers
26 syn match blankNumber "\[[0-9]\+\]"
28 syn case match
30 " Define the default highlighting.
31 " For version 5.7 and earlier: only when not done already
32 " For version 5.8 and later: only when an item doesn't have highlighting yet
33 if version >= 508 || !exists("did_blank_syntax_inits")
34   if version < 508
35     let did_blank_syntax_inits = 1
36     command -nargs=+ HiLink hi link <args>
37   else
38     command -nargs=+ HiLink hi def link <args>
39   endif
41   HiLink blankInstruction      Statement
42   HiLink blankNumber           Number
43   HiLink blankString           String
45   delcommand HiLink
46 endif
48 let b:current_syntax = "blank"
50 let &cpo = s:cpo_save
51 unlet s:cpo_save
52 " vim: ts=8