smith.vim (793B)
1 " Vim syntax file 2 " Language: SMITH 3 " Maintainer: Rafal M. Sulejman <rms@poczta.onet.pl> 4 " Last Change: 21.07.2000 5 6 " quit when a syntax file was already loaded 7 if exists("b:current_syntax") 8 finish 9 endif 10 11 syn case ignore 12 13 14 syn match smithComment ";.*$" 15 16 syn match smithNumber "\<[+-]*[0-9]\d*\>" 17 18 syn match smithRegister "R[\[]*[0-9]*[\]]*" 19 20 syn match smithKeyword "COR\|MOV\|MUL\|NOT\|STOP\|SUB\|NOP\|BLA\|REP" 21 22 syn region smithString start=+"+ skip=+\\\\\|\\"+ end=+"+ 23 24 25 syn case match 26 27 " Define the default highlighting. 28 " Only when an item doesn't have highlighting yet 29 30 hi def link smithRegister Identifier 31 hi def link smithKeyword Keyword 32 hi def link smithComment Comment 33 hi def link smithString String 34 hi def link smithNumber Number 35 36 37 let b:current_syntax = "smith" 38 39 " vim: ts=2