blank.vim 794 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. " quit when a syntax file was already loaded
  6. if exists("b:current_syntax")
  7. finish
  8. endif
  9. let s:cpo_save = &cpo
  10. set cpo&vim
  11. syn case ignore
  12. " Blank instructions
  13. syn match blankInstruction "{[:;,\.+\-*$#@/\\`'"!\|><{}\[\]()?xspo\^&\~=_%]}"
  14. " Common strings
  15. syn match blankString "\~[^}]"
  16. " Numbers
  17. syn match blankNumber "\[[0-9]\+\]"
  18. syn case match
  19. " Define the default highlighting.
  20. " Only when an item doesn't have highlighting yet
  21. hi def link blankInstruction Statement
  22. hi def link blankNumber Number
  23. hi def link blankString String
  24. let b:current_syntax = "blank"
  25. let &cpo = s:cpo_save
  26. unlet s:cpo_save
  27. " vim: ts=8