Created
June 13, 2013 14:07
-
-
Save lifthrasiir/5773955 to your computer and use it in GitHub Desktop.
Vim highlighting for K-Shoot Mania
This file contains hidden or 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
" Syntax file for K-Shoot Mania pattern file | |
" Maintainer: Kang Seonghoon <[email protected]> | |
" Last Change: 2013 Jun 13 | |
" License: Public domain | |
if version < 600 | |
syntax clear | |
elseif exists("b:current_syntax") | |
finish | |
endif | |
syn keyword shootKeyName title artist effect jacket illustrator difficulty level t m o bg po plength chokkakuvol contained | |
syn match shootError "^.*$" | |
syn match shootHorizSep "^--\s*$" | |
syn match shootVertSep "\%5v|\|\%8v|\|\%11v@" contained | |
syn match shootKey "^[^=]\+=" contains=shootKeyName nextgroup=shootValue | |
syn match shootValue ".*" contained | |
syn match shootLine "^[0-9]\{4}|[0-9A-Za-z]\{2}|[0-9A-Za-o:\-]\{2}\(@[()]\d\+\)\=\s*$" transparent contains=shootVertSep,shootNoShort,shootShortSingle,shootShortCont,shootNoLong,shootLongSingle,shootLongCont,shootNoLeftEff,shootLeftEffEnd,shootLeftEffCont,shootNoRightEff,shootRightEffEnd,shootRightEffCont | |
syn match shootNoShort "\%<5v0" contained | |
syn match shootShortSingle "\%<5v1" contained | |
syn match shootShortCont "\%<5v2" contained | |
syn match shootNoLong "\%>5v\%<8v0" contained | |
syn match shootLongSingle "\%>5v\%<8v[B-S]" contained | |
syn match shootLongCont "\%>5v\%<8v2" contained | |
syn match shootNoLeftEff "\%9v-" contained | |
syn match shootLeftEffEnd "\%9v[0-9A-Za-o]" contained | |
syn match shootLeftEffCont "\%9v:" contained | |
syn match shootNoRightEff "\%10v-" contained | |
syn match shootRightEffEnd "\%10v[0-9A-Za-o]" contained | |
syn match shootRightEffCont "\%10v:" contained | |
hi def link shootHorizSep Comment | |
hi def link shootVertSep Comment | |
hi def link shootKeyName Type | |
hi def link shootKey Special | |
hi def link shootValue String | |
hi def link shootError Error | |
hi def link shootNoShort Comment | |
hi def link shootNoLong Comment | |
hi def link shootNoShort Comment | |
hi def link shootNoLeftEff Comment | |
hi def link shootNoRightEff Comment | |
hi def link shootShortSingle shootShort | |
hi def link shootShortCont shootShort | |
hi def link shootLongSingle shootLong | |
hi def link shootLongCont shootLong | |
hi def link shootLeftEffEnd shootLeftEff | |
hi def link shootLeftEffCont shootLeftEff | |
hi def link shootRightEffEnd shootRightEff | |
hi def link shootRightEffCont shootRightEff | |
hi def link shootShort NONE | |
hi def link shootLong NONE | |
hi def link shootLeftEff NONE | |
hi def link shootRightEff NONE | |
hi shootVertSep guifg=gray50 | |
hi shootNoShort guifg=gray30 | |
hi shootNoLong guifg=gray30 | |
hi shootShortSingle term=reverse cterm=reverse guifg=bg guibg=#cccccc | |
hi shootShortCont term=reverse cterm=reverse guifg=bg guibg=#ffffff | |
hi shootLongSingle term=reverse cterm=reverse guifg=bg guibg=#ffcc00 | |
hi shootLongCont term=reverse cterm=reverse guifg=bg guibg=#cc8800 | |
hi shootNoLeftEff guifg=#080820 guibg=#101040 | |
hi shootLeftEffCont guifg=#202080 guibg=#4040ff | |
hi shootLeftEffEnd guibg=#4040ff | |
hi shootNoRightEff guifg=#200808 guibg=#401010 | |
hi shootRightEffCont guifg=#802020 guibg=#ff4040 | |
hi shootRightEffEnd guibg=#ff4040 | |
let b:current_syntax = "kshootmania" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment