xref: /vim-8.2.3635/runtime/syntax/mmp.vim (revision cb03397a)
1" Vim syntax file
2" Language:	Symbian meta-makefile definition (MMP)
3" Maintainer:	Ron Aaron <[email protected]>
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
10if version < 600
11  syntax clear
12elseif exists("b:current_syntax")
13  finish
14endif
15
16syn case ignore
17
18syn match mmpComment	"//.*"
19syn region mmpComment start="/\*" end="\*\/"
20
21syn keyword mmpKeyword	aif asspabi assplibrary aaspexports baseaddress
22syn keyword mmpKeyword	debuglibrary deffile document epocheapsize
23syn keyword mmpKeyword	epocprocesspriority epocstacksize exportunfrozen
24syn keyword mmpStorage	lang library linkas macro nostrictdef option
25syn keyword mmpStorage	resource source sourcepath srcdbg startbitmap
26syn keyword mmpStorage	start end staticlibrary strictdepend systeminclude
27syn keyword mmpStorage	systemresource target targettype targetpath uid
28syn keyword mmpStorage	userinclude win32_library
29
30syn match mmpIfdef	"\#\(include\|ifdef\|ifndef\|if\|endif\|else\|elif\)"
31
32syn match   mmpNumber	"\d+"
33syn 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
39if !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
49endif
50
51let b:current_syntax = "mmp"
52
53" vim: ts=8
54