blob: 82429691c10d1d84e1e3540f01591e2df5270dc6 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" Vim syntax file
2" Language: SMITH
3" Maintainer: Rafal M. Sulejman <rms@poczta.onet.pl>
4" Last Change: 21.07.2000
5
Bram Moolenaar89bcfda2016-08-30 23:26:57 +02006" quit when a syntax file was already loaded
7if exists("b:current_syntax")
Bram Moolenaar071d4272004-06-13 20:20:40 +00008 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.
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020028" Only when an item doesn't have highlighting yet
29command -nargs=+ HiLink hi def link <args>
Bram Moolenaar071d4272004-06-13 20:20:40 +000030
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020031HiLink smithRegister Identifier
32HiLink smithKeyword Keyword
33HiLink smithComment Comment
34HiLink smithString String
35HiLink smithNumber Number
Bram Moolenaar071d4272004-06-13 20:20:40 +000036
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020037delcommand HiLink
Bram Moolenaar071d4272004-06-13 20:20:40 +000038
39let b:current_syntax = "smith"
40
41" vim: ts=2