Mercurial > vim
comparison runtime/syntax/master.vim @ 7:3fc0f57ecb91 v7.0001
updated for version 7.0001
author | vimboss |
---|---|
date | Sun, 13 Jun 2004 20:20:40 +0000 |
parents | |
children | 7bc41231fbc7 |
comparison
equal
deleted
inserted
replaced
6:c2daee826b8f | 7:3fc0f57ecb91 |
---|---|
1 " Vim syntax file | |
2 " Language: Focus Master File | |
3 " Maintainer: Rob Brady <robb@datatone.com> | |
4 " Last Change: $Date$ | |
5 " URL: http://www.datatone.com/~robb/vim/syntax/master.vim | |
6 " $Revision$ | |
7 | |
8 " this is a very simple syntax file - I will be improving it | |
9 " add entire DEFINE syntax | |
10 | |
11 " For version 5.x: Clear all syntax items | |
12 " For version 6.x: Quit when a syntax file was already loaded | |
13 if version < 600 | |
14 syntax clear | |
15 elseif exists("b:current_syntax") | |
16 finish | |
17 endif | |
18 | |
19 syn case match | |
20 | |
21 " A bunch of useful keywords | |
22 syn keyword masterKeyword FILENAME SUFFIX SEGNAME SEGTYPE PARENT FIELDNAME | |
23 syn keyword masterKeyword FIELD ALIAS USAGE INDEX MISSING ON | |
24 syn keyword masterKeyword FORMAT CRFILE CRKEY | |
25 syn keyword masterDefine DEFINE DECODE EDIT | |
26 syn region masterString start=+"+ end=+"+ | |
27 syn region masterString start=+'+ end=+'+ | |
28 syn match masterComment "\$.*" | |
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_master_syntax_inits") | |
34 if version < 508 | |
35 let did_master_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 masterKeyword Keyword | |
42 HiLink masterComment Comment | |
43 HiLink masterString String | |
44 | |
45 delcommand HiLink | |
46 endif | |
47 | |
48 let b:current_syntax = "master" | |
49 | |
50 " vim: ts=8 |