blob: b045d3b963f7fb48999374df94696eab336934b8 [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
Bram Moolenaar071d4272004-06-13 20:20:40 +000029
Bram Moolenaarf37506f2016-08-31 22:22:10 +020030hi def link smithRegister Identifier
31hi def link smithKeyword Keyword
32hi def link smithComment Comment
33hi def link smithString String
34hi def link smithNumber Number
Bram Moolenaar071d4272004-06-13 20:20:40 +000035
Bram Moolenaar071d4272004-06-13 20:20:40 +000036
37let b:current_syntax = "smith"
38
39" vim: ts=2