xref: /vim-8.2.3635/runtime/syntax/mmp.vim (revision 89bcfda6)
13577c6faSBram Moolenaar" Vim syntax file
23577c6faSBram Moolenaar" Language:	Symbian meta-makefile definition (MMP)
33577c6faSBram Moolenaar" Maintainer:	Ron Aaron <[email protected]>
43577c6faSBram Moolenaar" Last Change:	2007/11/07
53577c6faSBram Moolenaar" URL: http://ronware.org/wiki/vim/mmp
63577c6faSBram Moolenaar" Filetypes:	*.mmp
73577c6faSBram Moolenaar
8*89bcfda6SBram Moolenaar" quit when a syntax file was already loaded
9*89bcfda6SBram Moolenaarif exists("b:current_syntax")
103577c6faSBram Moolenaar  finish
113577c6faSBram Moolenaarendif
123577c6faSBram Moolenaar
133577c6faSBram Moolenaarsyn case ignore
143577c6faSBram Moolenaar
153577c6faSBram Moolenaarsyn match mmpComment	"//.*"
163577c6faSBram Moolenaarsyn region mmpComment start="/\*" end="\*\/"
173577c6faSBram Moolenaar
183577c6faSBram Moolenaarsyn keyword mmpKeyword	aif asspabi assplibrary aaspexports baseaddress
193577c6faSBram Moolenaarsyn keyword mmpKeyword	debuglibrary deffile document epocheapsize
203577c6faSBram Moolenaarsyn keyword mmpKeyword	epocprocesspriority epocstacksize exportunfrozen
213577c6faSBram Moolenaarsyn keyword mmpStorage	lang library linkas macro nostrictdef option
223577c6faSBram Moolenaarsyn keyword mmpStorage	resource source sourcepath srcdbg startbitmap
233577c6faSBram Moolenaarsyn keyword mmpStorage	start end staticlibrary strictdepend systeminclude
243577c6faSBram Moolenaarsyn keyword mmpStorage	systemresource target targettype targetpath uid
253577c6faSBram Moolenaarsyn keyword mmpStorage	userinclude win32_library
263577c6faSBram Moolenaar
273577c6faSBram Moolenaarsyn match mmpIfdef	"\#\(include\|ifdef\|ifndef\|if\|endif\|else\|elif\)"
283577c6faSBram Moolenaar
293577c6faSBram Moolenaarsyn match   mmpNumber	"\d+"
303577c6faSBram Moolenaarsyn match   mmpNumber	"0x\x\+"
313577c6faSBram Moolenaar
323577c6faSBram Moolenaar
333577c6faSBram Moolenaar" Define the default highlighting.
34*89bcfda6SBram Moolenaar" Only when an item doesn't have highlighting yet
353577c6faSBram Moolenaarif !exists("did_mmp_syntax_inits")
363577c6faSBram Moolenaar  let did_mmp_syntax_inits=1
373577c6faSBram Moolenaar
383577c6faSBram Moolenaar  hi def link mmpComment	Comment
393577c6faSBram Moolenaar  hi def link mmpKeyword	Keyword
403577c6faSBram Moolenaar  hi def link mmpStorage	StorageClass
413577c6faSBram Moolenaar  hi def link mmpString	String
423577c6faSBram Moolenaar  hi def link mmpNumber	Number
433577c6faSBram Moolenaar  hi def link mmpOrdinal	Operator
443577c6faSBram Moolenaar  hi def link mmpIfdef	PreCondit
453577c6faSBram Moolenaarendif
463577c6faSBram Moolenaar
473577c6faSBram Moolenaarlet b:current_syntax = "mmp"
483577c6faSBram Moolenaar
493577c6faSBram Moolenaar" vim: ts=8
50