From c061eacce156635b77da30b4a37e58b8b56eb5c8 Mon Sep 17 00:00:00 2001 From: TuxCrafting Date: Fri, 9 Sep 2016 14:58:58 +0200 Subject: [PATCH] Added vim syntax file --- syntax/lgc.vim | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 syntax/lgc.vim diff --git a/syntax/lgc.vim b/syntax/lgc.vim new file mode 100644 index 0000000..dbc8678 --- /dev/null +++ b/syntax/lgc.vim @@ -0,0 +1,26 @@ +" Vim syntax file for Logicode +" https://github.com/LogicodeLang/Logicode +" Author: TuxCrafting +" +" Installation instructions: +" 1. Copy this file to ~/.vim/syntax/lgc.vim +" 2. Create the file ~/.vim/ftdetect/lgc.vim +" 3. Write 'au BufRead,BufNewFile *.lgc set filetype=lgc' in the ftdetect file +" 4. ??? +" 5. Profit! + +if exists("b:current_syntax") + finish +endif + +syn keyword lgcTodo TODO FIXME XXX NOTE +syn match lgcComment "#.*$" contains=lgcTodo +syn keyword lgcKeyword circ cond out var +syn match lgcNumber "[01]\+" + +let b:current_syntax = "lgc" + +hi def link lgcTodo Todo +hi def link lgcComment Comment +hi def link lgcKeyword Statement +hi def link lgcNumber Constant