Subversion Repositories stackman

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
3 daniel-mar 1
syntax "stam" "\.stam(_history){0,1}$"
2
header "^#!.*/stam$"
3
 
4
## Category change
5
color yellow "^#[^#]*$"
6
 
7
## Shebang
8
color green "^#!.*/stam$"
9
 
10
## Mark invalid parameters
11
color ,red "^-(back|b).+"
12
color ,red "^-(clear|cls).+"
13
color ,red "^-(batch|bat).+"
14
color ,red "^-(sub|su).+"
15
color ,red "^-(showhistory|shi).+"
16
color ,red "^-(listcurent|lce).+"
17
color ,red "^-(help|h|\?).+"
18
color ,red "^-(exit|quit|x|q).+"
19
color ,red "^-(unstrike|unstr).+"
20
color ,red "^-(strike|str).+"
21
color ,red "^-(movefromid|mfi).+"
22
 
23
## Known command parameters
24
color yellow "^-(singleadd|sa|as|appendsingle|aps)[[:space:]]+[^[:space:]]+"
25
color yellow "^-(movefromcat|mfc)[[:space:]]+[^[:space:]]+"
26
color yellow "^-(listent|le)[[:space:]]+.+"
27
color yellow "^-(listcat|ls|lc)[[:space:]]+.+"
28
color magenta "^-(unstrike|unstr)[[:space:]]+([[:digit:]]+(\-[[:digit:]]+){0,1}|last)"
29
color magenta "^-(strike|str)[[:space:]]+([[:digit:]]+(\-[[:digit:]]+){0,1}|last)"
30
color magenta "^-(movefromid|mfi)[[:space:]]+([[:digit:]]+(\-[[:digit:]]+){0,1}|last)"
31
 
32
## Unknown commands
33
color ,red "^-[^-][^[:space:]]*"
34
 
35
## Known commands
36
color red "^-(back|b)([[:space:]]|$)"
37
color red "^-(strike|str)([[:space:]]|$)"
38
color red "^-(singleadd|sa|as|appendsingle|aps)([[:space:]]|$)"
39
color red "^-(unstrike|unstr)([[:space:]]|$)"
40
color red "^-(movefromid|mfi)([[:space:]]|$)"
41
color red "^-(movefromcat|mfc)([[:space:]]|$)"
42
color red "^-(listent|le)([[:space:]]|$)"
43
color red "^-(listcurent|lce)([[:space:]]|$)"
44
color red "^-(listcat|ls|lc)([[:space:]]|$)"
45
color red "^-(clear|cls)([[:space:]]|$)"
46
color red "^-(batch|bat)([[:space:]]|$)"
47
color red "^-(sub|su)([[:space:]]|$)"
48
color red "^-(showhistory|shi)([[:space:]]|$)"
49
color red "^-(help|h|\?)([[:space:]]|$)"
50
color black,green "^-(exit|quit|x|q)([[:space:]]|$)"
51
 
52
## Missing parameters
53
color black,yellow "^-(strike|str)[[:space:]]*$"
54
color black,yellow "^-(unstrike|unstr)[[:space:]]*$"
55
color black,yellow "^-(movefromid|mfi)[[:space:]]*$"
56
color black,yellow "^-(movefromcat|mfc)[[:space:]]*$"
57
color black,yellow "^-(singleadd|sa|as|appendsingle|aps)([[:space:]][^[:space:]]+){0,1}[[:space:]]*$"
58
 
59
## Trailing whitespace
60
color ,yellow "[[:space:]]+$"