1" Vim syntax file 2" Language: Blank 1.4.1 3" Maintainer: Rafal M. Sulejman <[email protected]> 4" Last change: 2011 Dec 28 by Thilo Six 5 6" For version 5.x: Clear all syntax items 7" For version 6.x: Quit when a syntax file was already loaded 8if version < 600 9 syntax clear 10elseif exists("b:current_syntax") 11 finish 12endif 13 14let s:cpo_save = &cpo 15set cpo&vim 16 17syn case ignore 18 19" Blank instructions 20syn match blankInstruction "{[:;,\.+\-*$#@/\\`'"!\|><{}\[\]()?xspo\^&\~=_%]}" 21 22" Common strings 23syn match blankString "\~[^}]" 24 25" Numbers 26syn match blankNumber "\[[0-9]\+\]" 27 28syn case match 29 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 33if 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 40 41 HiLink blankInstruction Statement 42 HiLink blankNumber Number 43 HiLink blankString String 44 45 delcommand HiLink 46endif 47 48let b:current_syntax = "blank" 49 50let &cpo = s:cpo_save 51unlet s:cpo_save 52" vim: ts=8 53