summaryrefslogtreecommitdiff
path: root/xxx/vim-old/vim-potion/syntax/potionbytecode.vim
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2021-11-03 19:59:44 +0100
committerMiguel <m.i@gmx.at>2021-11-03 19:59:44 +0100
commitf70d5dc9b1f546bcfae67f067fe2e3b67f94ca45 (patch)
tree3bffaa05b78db0e393bc44eb273f771e08320154 /xxx/vim-old/vim-potion/syntax/potionbytecode.vim
parente3fb79099e233185825b248a0b275173bd182239 (diff)
improving dotfiles
Diffstat (limited to 'xxx/vim-old/vim-potion/syntax/potionbytecode.vim')
-rw-r--r--xxx/vim-old/vim-potion/syntax/potionbytecode.vim18
1 files changed, 18 insertions, 0 deletions
diff --git a/xxx/vim-old/vim-potion/syntax/potionbytecode.vim b/xxx/vim-old/vim-potion/syntax/potionbytecode.vim
new file mode 100644
index 0000000..24e2e44
--- /dev/null
+++ b/xxx/vim-old/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"