Y-asc

yet another stupid compiler
Log | Files | Refs | README | git clone https://git.ne02ptzero.me/git/Y-asc

commit 0faca2b93c91ef2a3f5eb9f27da5af77e971f72a
parent 4594a7adb84fc7a33061f47fda8a2a37fb6a43e3
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Mon, 26 Jun 2017 19:32:10 +0200

Add(Resources): Add VIM syntax file

Diffstat:
Aresources/syntax/vim/yasc.vim | 44++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+), 0 deletions(-)

diff --git a/resources/syntax/vim/yasc.vim b/resources/syntax/vim/yasc.vim @@ -0,0 +1,44 @@ +" Vim syntax file +" Language: YASC +" Maintainer: Louis Solofrizzo +" Lastest Revision: 26/06/2017 + +" If a plugin already did coloration, quit +if exists("b:current_syntax") + finish +endif + +let b:current_syntax = "yasc" + +" Keywords +syn keyword yascBasic return if else while do for struct + +" Types +syn keyword yascTypes bool u8 ubyte u16 u32 void + +" Specials keywords +syn keyword yascSpecials __const __static __heap + +" Strings and Integers +syn region yascString start='"' end='"' +syn match yascInt '\d\+' +syn match yascInt '[-+]\d\+' +syn match yascInt '[-+]\d\+\.\d*' +syn match yascInt '[-+]\=\d[[:digit:]]*[eE][\-+]\=\d\+' +syn match yascInt '\d[[:digit:]]*[eE][\-+]\=\d\+' +syn match yascInt '[-+]\=\d[[:digit:]]*\.\d*[eE][\-+]\=\d\+' +syn match yascInt '\d[[:digit:]]*\.\d*[eE][\-+]\=\d\+' + +" Todos +syn keyword yascTodo contained TODO FIXME XXX NOTE + +" Comments +syn match yascComment "\/\*.*$" + +hi! def link yascBasic Statement +hi! def link yascTypes Type +hi! def link yascSpecials PreProc +hi! def link yascString String +hi! def link yascInt Constant +hi! def link yascTodo Todo +hi! def link yascComment Comment