Distribution organization guidelines: contributed files in contrib.
--HG--
rename : edit/smith.vim => contrib/edit/smith.vim
catseye
9 years ago
57 | 57 |
|
58 | 58 |
-----------------------------------------------------------------------------
|
59 | 59 |
|
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
|
61 | 61 |
Rafal M. Sulejman and Nathan Thern respectively, for distribution in the
|
62 | 62 |
SMITH distribution; they are freely distributable unmodified for
|
63 | 63 |
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 | |
|
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
|