Mercurial > hg > RemoteEditor > vim7
comparison runtime/syntax/blank.vim @ 0:76efa0be13f1
Initial revision
author | atsuki |
---|---|
date | Sat, 10 Nov 2007 15:07:22 +0900 |
parents | |
children | 67300faee616 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:76efa0be13f1 |
---|---|
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 | |
8 if version < 600 | |
9 syntax clear | |
10 elseif exists("b:current_syntax") | |
11 finish | |
12 endif | |
13 | |
14 syn case ignore | |
15 | |
16 " Blank instructions | |
17 syn match blankInstruction "{[:;,\.+\-*$#@/\\`'"!\|><{}\[\]()?xspo\^&\~=_%]}" | |
18 | |
19 " Common strings | |
20 syn match blankString "\~[^}]" | |
21 | |
22 " Numbers | |
23 syn match blankNumber "\[[0-9]\+\]" | |
24 | |
25 syn 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 | |
30 if 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 | |
43 endif | |
44 | |
45 let b:current_syntax = "blank" | |
46 " vim: ts=8 |