started working on automatic filedetection

This commit is contained in:
Sheppy
2016-10-30 00:52:22 +02:00
parent 7bfee93918
commit 383e3ea793
3 changed files with 16 additions and 0 deletions

1
vim/ftdetect/dia.vim Normal file
View File

@@ -0,0 +1 @@
autocmd BufRead,BufNewFile *.dia set filetype=dia

BIN
vim/syntax/.dia.vim.swp Normal file

Binary file not shown.

15
vim/syntax/dia.vim Normal file
View File

@@ -0,0 +1,15 @@
echom "WAT IS THIS CRAP"
syntax match nodeID "/\vN.*:"
syntax match leaveID '/\v[A-MO-Z].*:'
syntax match annotation "[%@].*"
syntax match regie "\*.*\*"
hi def link nodeID Structure
hi def link leaveID Tag
hi def link annotation Function
hi def link regie String
let b:current_syntax = 'dia'