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/potionbytecode.vim | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 vim/vim-potion/syntax/potionbytecode.vim (limited to 'vim/vim-potion/syntax/potionbytecode.vim') diff --git a/vim/vim-potion/syntax/potionbytecode.vim b/vim/vim-potion/syntax/potionbytecode.vim new file mode 100644 index 0000000..24e2e44 --- /dev/null +++ b/vim/vim-potion/syntax/potionbytecode.vim @@ -0,0 +1,18 @@ +" minimalistic syntax highlighting for testing purposes + +if exists("b:current_syntax") + finish +endif + +syntax keyword potionKeyword code assign + + +syntax match potionNumber "\v\d+" +syntax region potionString start=/\v"/ skip=/\v\\./ end=/\v"/ + + +highlight link potionString String +highlight link potionKeyword Keyword +highlight link potionNumber Number + +let b:current_syntax = "potionbytecode" -- cgit v1.2.3