[vim] update mkm syntax

This commit is contained in:
Mathieu Maret 2012-02-01 15:59:27 +01:00
parent 47671bac50
commit 5e5ee94a30
1 changed files with 7 additions and 3 deletions

View File

@ -11,16 +11,20 @@ endif
"silent! unlet b:current_syntax
"syntax region shellCode start="Rule(" keepend end=")" contains=@Shell
" remove PythonRule from lmakeBuiltIn
"syntax region pythonCode start="PythonRule(.*,`" keepend end="')" contains=@Python
"syntax region pythonCode matchgroup=lmakefunct start="PythonRule(.*,`" keepend end="')" contains=@Python,lmakeBuiltIn
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
syn keyword lmakeBuiltIn CheckSum Env EnvAll EnvPattern LocalPythonRule LocalRule PythonRule Rule Side Src Target Tool
syn keyword lmakeBuiltIn CheckSum depend Env EnvAll EnvPattern LocalPythonRule LocalRule newdep pyDepend PythonRule Rule Side Src Target Tool
syn region lmakeComment start="//" skip="\\$" end="$" keepend contains=@Spell
syn match m5stem "<[[:alnum:]-]*>"
syn match m5stem "<[[:alnum:]-]*>"
syn match pyStr :"[^"]*": contains=m5BuiltIn,lmakeBuiltIn
hi def link pyStr Comment
hi def link m5BuiltIn Statement
hi def link lmakeBuiltIn PreProc
hi def link lmakefunct PreProc
hi def link lmakeComment Comment
hi def link m5stem Special