" Vim syntax file
" Language: Opsware's Configuration Markup Language (CML)
" Maintainer: Jeffery Martin
" Last Change: 2008-10-07
" Setup
if version >= 600
if exists("b:current_syntax")
finish
endif
else
syntax clear
endif
syntax match cmlComment /@#.*$/
syntax region cmlComment start=/@##/ end=/#@/
syntax region cmlBlock start=/@[[:digit:]]/ end=/@/
syntax region cmlInstruction start=/@!/ end=/@/
syntax region cmlReplace start=/@[[:alpha:]]/ end=/@/
hi def link cmlBlock Label
hi def link cmlComment Comment
hi def link cmlInstruction PreProc
hi def link cmlReplace Identifier
let b:current_syntax = "cml"
I search the Internet for answers to computer technical problems that I encounter. When the Internet does not supply me with an answer, I research one on my own. Then, I document the answer here so others can find it. Also, for your benefit, this stupid blog name makes a great mnemonic.
2008-10-23
[Opsware] vim syntax file for Configuration Markup Language (CML)
Here is my _very_ simple vim syntax file for Opsware's CML, that is, files that end in ".tpl"
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment