diff --git a/misc/vim/ftdetect/dbscheme.vim b/misc/vim/ftdetect/dbscheme.vim new file mode 100644 index 000000000000..5f3f94de185f --- /dev/null +++ b/misc/vim/ftdetect/dbscheme.vim @@ -0,0 +1 @@ +au BufRead,BufNewFile *.dbscheme set filetype=dbscheme diff --git a/misc/vim/syntax/dbscheme.vim b/misc/vim/syntax/dbscheme.vim new file mode 100644 index 000000000000..e1d199b50b89 --- /dev/null +++ b/misc/vim/syntax/dbscheme.vim @@ -0,0 +1,13 @@ +syn keyword dbschemeKeyword case of unique +syn keyword dbschemeType int ref string varchar + +syn match dbschemeCustomType "\v[@][a-zA-Z_0-9]+" +syn match dbschemeInlineComment "//.*$" + +syn region dbschemeComment start='/\*' end='\*/' + +hi def link dbschemeType Type +hi def link dbschemeKeyword Keyword +hi def link dbschemeCustomType Type +hi def link dbschemeComment Comment +hi def link dbschemeInlineComment Comment