Content
#
if exists("b:current_syntax")
finish
endif
syntax keyword potionKeyword loop to times 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 match potionOperator "\v-\="
syntax match potionNumber "\v(0x[0-9a-fA-F]+|\d+(\.\d+)?([eE][+-]\d+)?)"
syntax region potionString start=/\v"/ skip=/\v\\./ end=/\v"/
highlight link potionKeyword Keyword
highlight link potionFunction Function
highlight link potionComment Comment
highlight link potionOperator Operator
highlight link potionNumber Number
highlight link potionString string
let b:current_syntax = "potion"
From
#
Links
#
:h syn-keyword
:h iskeyword
:h group-name
:h syn-match
:h syn-priority
:h syn-region