2 " Language: Microsoft Module-Definition (.def) File
3 " Maintainer: Rob Brady <robb@datatone.com>
4 " Last Change: $Date: 2004/06/13 18:26:37 $
5 " URL: http://www.datatone.com/~robb/vim/syntax/def.vim
8 " For version 5.x: Clear all syntax items
9 " For version 6.x: Quit when a syntax file was already loaded
12 elseif exists("b:current_syntax")
18 syn match defComment ";.*"
20 syn keyword defKeyword LIBRARY STUB EXETYPE DESCRIPTION CODE WINDOWS DOS
21 syn keyword defKeyword RESIDENTNAME PRIVATE EXPORTS IMPORTS SEGMENTS
22 syn keyword defKeyword HEAPSIZE DATA
23 syn keyword defStorage LOADONCALL MOVEABLE DISCARDABLE SINGLE
24 syn keyword defStorage FIXED PRELOAD
26 syn match defOrdinal "@\d\+"
28 syn region defString start=+'+ end=+'+
30 syn match defNumber "\d+"
31 syn match defNumber "0x\x\+"
34 " Define the default highlighting.
35 " For version 5.7 and earlier: only when not done already
36 " For version 5.8 and later: only when an item doesn't have highlighting yet
37 if version >= 508 || !exists("did_def_syntax_inits")
39 let did_def_syntax_inits = 1
40 command -nargs=+ HiLink hi link <args>
42 command -nargs=+ HiLink hi def link <args>
45 HiLink defComment Comment
46 HiLink defKeyword Keyword
47 HiLink defStorage StorageClass
48 HiLink defString String
49 HiLink defNumber Number
50 HiLink defOrdinal Operator
55 let b:current_syntax = "def"