add map parsing and other things

This commit is contained in:
mcolonna 2024-10-04 15:32:12 +02:00
parent f04587cd62
commit 5bad24dcee
24 changed files with 974 additions and 15 deletions

21
dev/cub.vim Normal file
View file

@ -0,0 +1,21 @@
function! CubSyntax()
if expand('%:e') == 'cub'
highlight cubParameter ctermfg=blue
syntax match cubParameter /^(NO|SO|WE|EA|F|C) .$/
highlight cubDefault ctermfg=white
syntax match cubDefault /./
highlight cub0 ctermfg=grey
syntax match cub0 /0/
highlight cub1 cterm=bold ctermfg=white
syntax match cub1 /1/
highlight cubP cterm=bold ctermfg=blue
syntax match cubP /[NSWE]/
endif
endfunction
autocmd BufReadPost * call CubSyntax()