[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"

" 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")
syntax clear

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"

No comments:

Post a Comment