home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / runtime / dos / syntax / blank.vim < prev    next >
Encoding:
Text File  |  2012-05-31  |  1.2 KB  |  53 lines

  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
  5.  
  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
  13.  
  14. let s:cpo_save = &cpo
  15. set cpo&vim
  16.  
  17. syn case ignore
  18.  
  19. " Blank instructions
  20. syn match blankInstruction "{[:;,\.+\-*$#@/\\`'"!\|><{}\[\]()?xspo\^&\~=_%]}"
  21.  
  22. " Common strings
  23. syn match blankString "\~[^}]"
  24.  
  25. " Numbers
  26. syn match blankNumber "\[[0-9]\+\]"
  27.  
  28. syn 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
  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
  40.  
  41.   HiLink blankInstruction      Statement
  42.   HiLink blankNumber           Number
  43.   HiLink blankString           String
  44.  
  45.   delcommand HiLink
  46. endif
  47.  
  48. let b:current_syntax = "blank"
  49.  
  50. let &cpo = s:cpo_save
  51. unlet s:cpo_save
  52. " vim: ts=8
  53.