annotate runtime/syntax/mmp.vim @ 2777:30bcf93b3521

Added tag v7-3-164 for changeset cdefcbb70e8c
author Bram Moolenaar <bram@vim.org>
date Thu, 28 Apr 2011 13:02:09 +0200
parents 73fe8baea242
children 43efa4f5a8ea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1620
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
1 " Vim syntax file
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
2 " Language: Symbian meta-makefile definition (MMP)
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
3 " Maintainer: Ron Aaron <ron@ronware.org>
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
4 " Last Change: 2007/11/07
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
5 " URL: http://ronware.org/wiki/vim/mmp
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
6 " Filetypes: *.mmp
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
7
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
8 " For version 5.x: Clear all syntax items
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
9 " For version 6.x: Quit when a syntax file was already loaded
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
10 if version < 600
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
11 syntax clear
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
12 elseif exists("b:current_syntax")
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
13 finish
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
14 endif
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
15
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
16 syn case ignore
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
17
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
18 syn match mmpComment "//.*"
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
19 syn region mmpComment start="/\*" end="\*\/"
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
20
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
21 syn keyword mmpKeyword aif asspabi assplibrary aaspexports baseaddress
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
22 syn keyword mmpKeyword debuglibrary deffile document epocheapsize
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
23 syn keyword mmpKeyword epocprocesspriority epocstacksize exportunfrozen
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
24 syn keyword mmpStorage lang library linkas macro nostrictdef option
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
25 syn keyword mmpStorage resource source sourcepath srcdbg startbitmap
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
26 syn keyword mmpStorage start end staticlibrary strictdepend systeminclude
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
27 syn keyword mmpStorage systemresource target targettype targetpath uid
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
28 syn keyword mmpStorage userinclude win32_library
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
29
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
30 syn match mmpIfdef "\#\(include\|ifdef\|ifndef\|if\|endif\|else\|elif\)"
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
31
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
32 syn match mmpNumber "\d+"
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
33 syn match mmpNumber "0x\x\+"
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
34
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
35
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
36 " Define the default highlighting.
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
37 " For version 5.7 and earlier: only when not done already
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
38 " For version 5.8 and later: only when an item doesn't have highlighting yet
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
39 if !exists("did_mmp_syntax_inits")
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
40 let did_mmp_syntax_inits=1
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
41
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
42 hi def link mmpComment Comment
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
43 hi def link mmpKeyword Keyword
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
44 hi def link mmpStorage StorageClass
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
45 hi def link mmpString String
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
46 hi def link mmpNumber Number
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
47 hi def link mmpOrdinal Operator
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
48 hi def link mmpIfdef PreCondit
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
49 endif
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
50
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
51 let b:current_syntax = "mmp"
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
52
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
53 " vim: ts=8