git @ Cat's Eye Technologies SMITH / 319d63f
Distribution organization guidelines: contributed files in contrib. --HG-- rename : edit/smith.vim => contrib/edit/smith.vim catseye 9 years ago
3 changed file(s) with 39 addition(s) and 39 deletion(s). Raw diff Collapse all Expand all
5757
5858 -----------------------------------------------------------------------------
5959
60 The files `edit/smith.vim` and `eg/beer.smt` were contributed by
60 The files `contrib/edit/smith.vim` and `eg/beer.smt` were contributed by
6161 Rafal M. Sulejman and Nathan Thern respectively, for distribution in the
6262 SMITH distribution; they are freely distributable unmodified for
6363 non-commercial purposes, and are thus covered under the following license:
0
1 " Vim syntax file
2 " Language: SMITH
3 " Maintainer: Rafal M. Sulejman <rms@poczta.onet.pl>
4 " Last Change: 24.06.2000
5
6 " Remove any old syntax stuff hanging around
7 syn clear
8
9 syn case ignore
10
11
12 syn match smithComment ";.*$"
13
14 syn match decNumber "\<[+-]*[0-9]\d*\>"
15
16 syn match smithRegister "R[\[]*[0-9]*[\]]*"
17
18 syn match smithKeyword "COR\|MOV\|MUL\|NOT\|STOP\|SUB\|NOP\|BLA\|REP"
19
20 syn region smithString start=+"+ skip=+\\\\\|\\"+ end=+"+
21
22
23 syn case match
24
25 if !exists("did_smith_syntax_inits")
26 let did_smith_syntax_inits = 1
27 " The default methods for highlighting. Can be overridden later
28 hi link smithRegister Identifier
29 hi link smithKeyword Keyword
30 hi link smithComment Comment
31 hi link smithString String
32 hi link decNumber Number
33 endif
34
35 let b:current_syntax = "smith"
36
37 " vim: ts=2
+0
-38
edit/smith.vim less more
0
1 " Vim syntax file
2 " Language: SMITH
3 " Maintainer: Rafal M. Sulejman <rms@poczta.onet.pl>
4 " Last Change: 24.06.2000
5
6 " Remove any old syntax stuff hanging around
7 syn clear
8
9 syn case ignore
10
11
12 syn match smithComment ";.*$"
13
14 syn match decNumber "\<[+-]*[0-9]\d*\>"
15
16 syn match smithRegister "R[\[]*[0-9]*[\]]*"
17
18 syn match smithKeyword "COR\|MOV\|MUL\|NOT\|STOP\|SUB\|NOP\|BLA\|REP"
19
20 syn region smithString start=+"+ skip=+\\\\\|\\"+ end=+"+
21
22
23 syn case match
24
25 if !exists("did_smith_syntax_inits")
26 let did_smith_syntax_inits = 1
27 " The default methods for highlighting. Can be overridden later
28 hi link smithRegister Identifier
29 hi link smithKeyword Keyword
30 hi link smithComment Comment
31 hi link smithString String
32 hi link decNumber Number
33 endif
34
35 let b:current_syntax = "smith"
36
37 " vim: ts=2