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