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