From 68b54b0d1729cd036fcba1c85f85ad4af6e9e3dc Mon Sep 17 00:00:00 2001 From: Miguel Date: Tue, 29 May 2018 20:27:28 +0200 Subject: added vim stuff --- vim/vim-potion/syntax/potion.vim | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 vim/vim-potion/syntax/potion.vim (limited to 'vim/vim-potion/syntax/potion.vim') diff --git a/vim/vim-potion/syntax/potion.vim b/vim/vim-potion/syntax/potion.vim new file mode 100644 index 0000000..2ca9dbc --- /dev/null +++ b/vim/vim-potion/syntax/potion.vim @@ -0,0 +1,37 @@ +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 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 potionOperator "\v\+\=" +syntax match potionOperator "\v-\=" + +syntax match potionNumber "\v\d+" +syntax match potionNumber "\v0x\x+" + +syntax region potionString start=/\v"/ skip=/\v\\./ end=/\v"/ + +syntax match potionComment "\v#.*$" + +highlight link potionString String +highlight link potionOperator Operator +highlight link potionKeyword Keyword +highlight link potionFunction Function +highlight link potionComment Comment +highlight link potionNumber Number + +let b:current_syntax = "potion" -- cgit v1.2.3