1" Vim syntax file 2" Language: Blank 1.4.1 3" Maintainer: Rafal M. Sulejman <unefunge@friko2.onet.pl> 4" Last change: 21 Jul 2000 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 14syn case ignore 15 16" Blank instructions 17syn match blankInstruction "{[:;,\.+\-*$#@/\\`'"!\|><{}\[\]()?xspo\^&\~=_%]}" 18 19" Common strings 20syn match blankString "\~[^}]" 21 22" Numbers 23syn match blankNumber "\[[0-9]\+\]" 24 25syn case match 26 27" Define the default highlighting. 28" For version 5.7 and earlier: only when not done already 29" For version 5.8 and later: only when an item doesn't have highlighting yet 30if version >= 508 || !exists("did_blank_syntax_inits") 31 if version < 508 32 let did_blank_syntax_inits = 1 33 command -nargs=+ HiLink hi link <args> 34 else 35 command -nargs=+ HiLink hi def link <args> 36 endif 37 38 HiLink blankInstruction Statement 39 HiLink blankNumber Number 40 HiLink blankString String 41 42 delcommand HiLink 43endif 44 45let b:current_syntax = "blank" 46" vim: ts=8 47