2 " Language: Focus Master File
3 " Maintainer: Rob Brady <robb@datatone.com>
4 " Last Change: $Date: 2004/06/13 15:54:03 $
5 " URL: http://www.datatone.com/~robb/vim/syntax/master.vim
8 " this is a very simple syntax file - I will be improving it
9 " add entire DEFINE syntax
11 " For version 5.x: Clear all syntax items
12 " For version 6.x: Quit when a syntax file was already loaded
15 elseif exists("b:current_syntax")
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 "\$.*"
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")
35 let did_master_syntax_inits = 1
36 command -nargs=+ HiLink hi link <args>
38 command -nargs=+ HiLink hi def link <args>
41 HiLink masterKeyword Keyword
42 HiLink masterComment Comment
43 HiLink masterString String
48 let b:current_syntax = "master"