config/.vim/syntax/mkm.vim
2015-06-30 15:46:20 +02:00

32 lines
1.7 KiB
VimL

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
"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 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 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
let b:current_syntax = "mkm"