From fba2e9afa168fc15b0eed6162839e077e5568980 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Tue, 1 Jul 2014 12:05:55 +0200 Subject: [PATCH] vim: add initial uboot mode, with identifiers and # line comments Signed-off-by: Alejandro Mery --- files/.vim/syntax/uboot.vim | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 files/.vim/syntax/uboot.vim diff --git a/files/.vim/syntax/uboot.vim b/files/.vim/syntax/uboot.vim new file mode 100644 index 0000000..66d52e5 --- /dev/null +++ b/files/.vim/syntax/uboot.vim @@ -0,0 +1,15 @@ +" Quit when a (custom) syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +" case sensitive +syn case match + +syn match scrComment "^[ \t]*#.*$" +syn match scrProperty "\${[a-z\.]\+}" + +hi link scrComment Comment +hi link scrProperty Identifier + +let b:current_syntax = "uboot"