vim/bundle/potion/syntax/potion.vim @ 5ddfd5a61ea1

Update with various crap from the past few weeks.
author Steve Losh <steve@stevelosh.com>
date Thu, 13 Jun 2013 10:44:08 -0400
parents 4c036b4fcae9
children (none)
if exists("b:current_syntax")
    finish
endif

syntax keyword potionKeyword loop times to while
syntax keyword potionKeyword if elsif else
syntax keyword potionKeyword class return

syntax keyword potionFunction print join string

syntax match potionComment "\v#.*$"

syntax match potionOperator "\v\*"
syntax match potionOperator "\v/\="
syntax match potionOperator "\v\+"
syntax match potionOperator "\v-"
syntax match potionOperator "\v/"
syntax match potionOperator "\v\*\="
syntax match potionOperator "\v\+\="
syntax match potionOperator "\v-\="
syntax match potionOperator "\v\?"

syntax region potionString start=/\v"/ skip=/\v\\./ end=/\v"/
syntax region potionString start=/\v'/ skip=/\v\\./ end=/\v'/

highlight link potionKeyword Keyword
highlight link potionFunction Function
highlight link potionOperator Operator
highlight link potionComment Comment
highlight link potionString String

let b:current_syntax = "potion"