2012-02-01 14:11:47 +01:00
|
|
|
|
|
|
|
if version < 600
|
|
|
|
syntax clear
|
|
|
|
elseif exists("b:current_syntax")
|
|
|
|
finish
|
|
|
|
endif
|
|
|
|
|
|
|
|
"syntax include @Python syntax/python.vim
|
|
|
|
"silent! unlet b:current_syntax
|
|
|
|
"syntax include @Shell syntax/sh.vim
|
|
|
|
"silent! unlet b:current_syntax
|
|
|
|
"syntax region shellCode start="Rule(" keepend end=")" contains=@Shell
|
|
|
|
" remove PythonRule from lmakeBuiltIn
|
2012-02-01 15:59:27 +01:00
|
|
|
"syntax region pythonCode matchgroup=lmakefunct start="PythonRule(.*,`" keepend end="')" contains=@Python,lmakeBuiltIn
|
2012-02-01 14:11:47 +01:00
|
|
|
|
|
|
|
syn keyword m5BuiltIn Append Assert Case CasePattern CountArg CurrentDir CurrentFile CurrentLine DebugFile DebugMode Decr Define Define1 Defined Defn Depend Div1000 DumpDefn Equal EqualFile EqualRaw ErrPrint Eval Exit ExitFile Find First ForEach Fork ForEver Format If Include Include1 IncludeErrList IncludeFile IncludeFile1 Included Incr Indirect IsBlank Kill Last Len Log LookUp Max Min Mul1000 MultiShift NewLine Paste PopDefn Prepend Print Process PushDefn PutEnv qBaseName qDefault qDirName qEnvList qGetEnv qGlobalSubst qIndent qInLine qNoBlank qSubstring qSystemOut qToLower qToUpper qTranslit Quote Random Repeat Shift Strip Subst System SystemErr SystemOut TmpFile TraceOff TraceOn Undefine Void While
|
2012-02-01 15:59:27 +01:00
|
|
|
syn keyword lmakeBuiltIn CheckSum depend Env EnvAll EnvPattern LocalPythonRule LocalRule newdep pyDepend PythonRule Rule Side Src Target Tool
|
2012-02-01 14:11:47 +01:00
|
|
|
|
|
|
|
syn region lmakeComment start="//" skip="\\$" end="$" keepend contains=@Spell
|
2012-02-01 15:59:27 +01:00
|
|
|
|
2012-02-01 14:11:47 +01:00
|
|
|
syn match m5stem "<[[:alnum:]-]*>"
|
2012-02-01 15:59:27 +01:00
|
|
|
syn match pyStr :"[^"]*": contains=m5BuiltIn,lmakeBuiltIn
|
2012-02-01 14:11:47 +01:00
|
|
|
|
2012-02-01 15:59:27 +01:00
|
|
|
hi def link pyStr Comment
|
2012-02-01 14:11:47 +01:00
|
|
|
hi def link m5BuiltIn Statement
|
|
|
|
hi def link lmakeBuiltIn PreProc
|
2012-02-01 15:59:27 +01:00
|
|
|
hi def link lmakefunct PreProc
|
2012-02-01 14:11:47 +01:00
|
|
|
hi def link lmakeComment Comment
|
|
|
|
hi def link m5stem Special
|
|
|
|
|
|
|
|
let b:current_syntax = "mkm"
|