annotate runtime/syntax/def.vim @ 6459:342bbee39831

Added tag v7-4-558 for changeset 48111d5fd8a8
author Bram Moolenaar <bram@vim.org>
date Wed, 17 Dec 2014 17:59:31 +0100
parents 7bc41231fbc7
children 43efa4f5a8ea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: Microsoft Module-Definition (.def) File
1621
82b5078be2dd updated for version 7.2a
vimboss
parents: 7
diff changeset
3 " Orig Author: Rob Brady <robb@datatone.com>
82b5078be2dd updated for version 7.2a
vimboss
parents: 7
diff changeset
4 " Maintainer: Wu Yongwei <wuyongwei@gmail.com>
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1621
diff changeset
5 " Last Change: $Date: 2007/10/02 13:51:24 $
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1621
diff changeset
6 " $Revision: 1.2 $
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn match defComment ";.*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn keyword defKeyword LIBRARY STUB EXETYPE DESCRIPTION CODE WINDOWS DOS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn keyword defKeyword RESIDENTNAME PRIVATE EXPORTS IMPORTS SEGMENTS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn keyword defKeyword HEAPSIZE DATA
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn keyword defStorage LOADONCALL MOVEABLE DISCARDABLE SINGLE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn keyword defStorage FIXED PRELOAD
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25
1621
82b5078be2dd updated for version 7.2a
vimboss
parents: 7
diff changeset
26 syn match defOrdinal "\s\+@\d\+"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn region defString start=+'+ end=+'+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn match defNumber "\d+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn match defNumber "0x\x\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 " For version 5.8 and later: only when an item doesn't have highlighting yet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 if version >= 508 || !exists("did_def_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 let did_def_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 HiLink defComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 HiLink defKeyword Keyword
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 HiLink defStorage StorageClass
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 HiLink defString String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 HiLink defNumber Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 HiLink defOrdinal Operator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 let b:current_syntax = "def"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 " vim: ts=8