[go: up one dir, main page]

File: cw.vim

package info (click to toggle)
corewars 0.9.12-5
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,212 kB
  • ctags: 1,062
  • sloc: ansic: 7,154; yacc: 1,376; sh: 397; makefile: 109; lex: 104; lisp: 68
file content (39 lines) | stat: -rw-r--r-- 946 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
"
" Core Wars syntax file for vim
"
" March 2000, Alexey Vyskubov <alexey@byte-unix.piter-press.ru>
"
" Load this syntax file each time by typing ":source cw.vim" 
" or install it permanently (see ":help syntax.txt").
" 

syn clear
syn case match

syn keyword cwData	data
syn keyword cwCommand	move add neg and not movei
syn keyword cwFlow	loop jump fork
syn keyword cwCheck	own equal less
syn keyword cwSystem	info system

syn match	cwNumber	"-\=\<\d\+\>"
syn match	cwComment	"^#.*$"
syn match	cwTitle		"title.*$"

syn match	cwAddress	"\<[A-Z]\+[A-Z0-9]*\>"
syn match	cwRef		"&[A-Z0-9]\+\>"
syn region	cwRef2		start="\[" end="\]"

hi cwData	ctermfg=DarkGreen
hi cwCommand	ctermfg=Yellow
hi cwFlow	ctermfg=Green
hi cwCheck	ctermfg=Blue
hi cwSystem	ctermfg=Magenta
hi cwNumber	ctermfg=DarkGreen
hi cwComment	ctermfg=Cyan
hi cwTitle	ctermfg=Yellow ctermbg=DarkBlue
hi cwAddress	ctermfg=White
hi cwRef	ctermfg=LightBlue
hi cwRef2	ctermfg=DarkCyan