3 " Maintainer: Rafal M. Sulejman <rms@poczta.onet.pl>
4 " Last Change: 21.07.2000
6 " For version 5.x: Clear all syntax items
7 " For version 6.x: Quit when a syntax file was already loaded
10 elseif exists("b:current_syntax")
17 syn match smithComment ";.*$"
19 syn match smithNumber "\<[+-]*[0-9]\d*\>"
21 syn match smithRegister "R[\[]*[0-9]*[\]]*"
23 syn match smithKeyword "COR\|MOV\|MUL\|NOT\|STOP\|SUB\|NOP\|BLA\|REP"
25 syn region smithString start=+"+ skip=+\\\\\|\\"+ end=+"+
30 " Define the default highlighting.
31 " For version 5.7 and earlier: only when not done already
32 " For version 5.8 and later: only when an item doesn't have highlighting yet
33 if version >= 508 || !exists("did_smith_syntax_inits")
35 let did_smith_syntax_inits = 1
36 command -nargs=+ HiLink hi link <args>
38 command -nargs=+ HiLink hi def link <args>
41 HiLink smithRegister Identifier
42 HiLink smithKeyword Keyword
43 HiLink smithComment Comment
44 HiLink smithString String
45 HiLink smithNumber Number
50 let b:current_syntax = "smith"