[vim] add syntax file for mkm
This commit is contained in:
parent
9be2a0673a
commit
47671bac50
27
.vim/syntax/mkm.vim
Normal file
27
.vim/syntax/mkm.vim
Normal file
@ -0,0 +1,27 @@
|
||||
|
||||
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 start="PythonRule(.*,`" keepend end="')" contains=@Python
|
||||
|
||||
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 region lmakeComment start="//" skip="\\$" end="$" keepend contains=@Spell
|
||||
syn match m5stem "<[[:alnum:]-]*>"
|
||||
|
||||
hi def link m5BuiltIn Statement
|
||||
hi def link lmakeBuiltIn PreProc
|
||||
hi def link lmakeComment Comment
|
||||
hi def link m5stem Special
|
||||
|
||||
let b:current_syntax = "mkm"
|
Loading…
Reference in New Issue
Block a user