50 lines · 1.5 KB · Text
RawDownload
" Vim Syntax file" Language: Myrddin" Maintainer: Ori Bernstein if exists("b:current_syntax")    finishendif syn region myrComment start=+/\*+ end=+\*/+ contains=myrCommentsyn region myrComment start=+//+ end=+$+syn match myrSpecial display contained "\\\(x\x\+\|\o\{1,3}\|u{[a-zA-Z0-9_]*}\|.\|$\)"syn match myrFormat display contained "{[^}]*}"syn region myrString start=+"+ skip=+\\"+ end=+"+ contains=myrSpecial,myrFormat extendsyn region myrChar start=+'+ skip=+\\'+ end=+'+ contains=myrSpecial,myrFormat extendsyn keyword myrKeyword auto                     \ break                     \ const                     \ continue                     \ elif                     \ else                     \ extern                     \ false                     \ for                     \ generic                     \ goto                     \ if                     \ impl                     \ match                     \ pkg                     \ pkglocal                     \ sizeof                     \ struct                     \ trait                     \ true                     \ type                     \ union                     \ use                     \ var                     \ while hi def link myrComment  Commenthi def link myrString   Stringhi def link myrChar   Stringhi def link myrSpecial  Specialhi def link myrFormat   Special" Too much color makes my eyes hurt. Just highlight" the most important and uncommon stuff."hi def link myrKeyword  Keyword let b:current_syntax = "myr"