Last active
December 22, 2015 01:29
-
-
Save muupan/6396732 to your computer and use it in GitHub Desktop.
A sintax file for Gunbai Script (for SamurAI Coding 2013).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" A sintax file for Gunbai Script (for SamurAI Coding 2013). | |
" | |
" Put this file in .vim/syntax/ and and add set filetype gunbai. | |
" Example: | |
" au BufRead,BufNewFile *.gb set filetype=gunbai | |
syntax region gunbaiLineComment start=+#+ end=+$+ | |
syntax keyword gunbaiConditional if elif else endif | |
syntax keyword gunbaiRepeat while endwhile | |
syntax keyword gunbaiCase break continue | |
syntax keyword gunbaiFunction func endfunc | |
syntax keyword gunbaiStatement print return local | |
syntax keyword gunbaiBuiltinFunction gb_remaining_turns gb_turns_before_enabling_syzygies gb_field_size gb_hexel_owner gb_gate_positions gb_agent_positions gb_agent_status gb_team_id gb_random_value gb_move gb_storage | |
syntax match gunbaiConstant '\<\u[A-Z0-9]*\>' | |
highlight default link gunbaiLineComment Comment | |
highlight default link gunbaiConditional Conditional | |
highlight default link gunbaiRepeat Repeat | |
highlight default link gunbaiCase Label | |
highlight default link gunbaiFunction Function | |
highlight default link gunbaiStatement Statement | |
highlight default link gunbaiBuiltinFunction Statement | |
highlight default link gunbaiConstant Constant |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment