/trunk/SSH/nanorc/.nanorc |
---|
0,0 → 1,5 |
set nowrap |
## Stam files |
include "/home/stamuser/stam/nanorc/stam.nanorc" |
/trunk/SSH/nanorc/stam.nanorc |
---|
0,0 → 1,60 |
syntax "stam" "\.stam(_history){0,1}$" |
header "^#!.*/stam$" |
## Category change |
color yellow "^#[^#]*$" |
## Shebang |
color green "^#!.*/stam$" |
## Mark invalid parameters |
color ,red "^-(back|b).+" |
color ,red "^-(clear|cls).+" |
color ,red "^-(batch|bat).+" |
color ,red "^-(sub|su).+" |
color ,red "^-(showhistory|shi).+" |
color ,red "^-(listcurent|lce).+" |
color ,red "^-(help|h|\?).+" |
color ,red "^-(exit|quit|x|q).+" |
color ,red "^-(unstrike|unstr).+" |
color ,red "^-(strike|str).+" |
color ,red "^-(movefromid|mfi).+" |
## Known command parameters |
color yellow "^-(singleadd|sa|as|appendsingle|aps)[[:space:]]+[^[:space:]]+" |
color yellow "^-(movefromcat|mfc)[[:space:]]+[^[:space:]]+" |
color yellow "^-(listent|le)[[:space:]]+.+" |
color yellow "^-(listcat|ls|lc)[[:space:]]+.+" |
color magenta "^-(unstrike|unstr)[[:space:]]+([[:digit:]]+(\-[[:digit:]]+){0,1}|last)" |
color magenta "^-(strike|str)[[:space:]]+([[:digit:]]+(\-[[:digit:]]+){0,1}|last)" |
color magenta "^-(movefromid|mfi)[[:space:]]+([[:digit:]]+(\-[[:digit:]]+){0,1}|last)" |
## Unknown commands |
color ,red "^-[^-][^[:space:]]*" |
## Known commands |
color red "^-(back|b)([[:space:]]|$)" |
color red "^-(strike|str)([[:space:]]|$)" |
color red "^-(singleadd|sa|as|appendsingle|aps)([[:space:]]|$)" |
color red "^-(unstrike|unstr)([[:space:]]|$)" |
color red "^-(movefromid|mfi)([[:space:]]|$)" |
color red "^-(movefromcat|mfc)([[:space:]]|$)" |
color red "^-(listent|le)([[:space:]]|$)" |
color red "^-(listcurent|lce)([[:space:]]|$)" |
color red "^-(listcat|ls|lc)([[:space:]]|$)" |
color red "^-(clear|cls)([[:space:]]|$)" |
color red "^-(batch|bat)([[:space:]]|$)" |
color red "^-(sub|su)([[:space:]]|$)" |
color red "^-(showhistory|shi)([[:space:]]|$)" |
color red "^-(help|h|\?)([[:space:]]|$)" |
color black,green "^-(exit|quit|x|q)([[:space:]]|$)" |
## Missing parameters |
color black,yellow "^-(strike|str)[[:space:]]*$" |
color black,yellow "^-(unstrike|unstr)[[:space:]]*$" |
color black,yellow "^-(movefromid|mfi)[[:space:]]*$" |
color black,yellow "^-(movefromcat|mfc)[[:space:]]*$" |
color black,yellow "^-(singleadd|sa|as|appendsingle|aps)([[:space:]][^[:space:]]+){0,1}[[:space:]]*$" |
## Trailing whitespace |
color ,yellow "[[:space:]]+$" |
/trunk/SSH/nanorc/test.stam |
---|
0,0 → 1,151 |
#!/usr/bin/stam |
-unknowncommand |
-unknowncommand xyz |
#categorychange |
#category with spaces |
##append string with '#' beginning |
any other string |
--append a string with '-' beginning |
(no parameters allowed) |
-b |
-back |
-b invalid parameters |
-back invalid parameters |
(requires <id> as paramter) |
-strike |
-str |
-strike 123 |
-str 123 |
-strike 123-456 |
-str 123-456 |
-strike last |
-str last |
-strike 123 invalid |
-str 123 invalid |
-strike invalid invalid |
-str invalid invalid |
(requires <cat> and <entry> as parameters) |
-singleadd |
-sa |
-as |
-singleadd cat |
-sa cat |
-as cat |
-singleadd cat entries with space |
-sa cat entries with space |
-as cat entries with space |
-appendsingle cat entries with space |
-aps cat entries with space |
(requires <id> as paramter) |
-unstrike |
-unstr |
-unstrike 123 |
-unstr 123 |
-unstrike 123-456 |
-unstr 123-456 |
-unstrike last |
-unstr last |
-unstrike 123 invalid |
-unstr 123 invalid |
-unstrike invalid invalid |
-unstr invalid invalid |
(requires <id> as paramter) |
-movefromid |
-mfi |
-movefromid 123 |
-mfi 123 |
-movefromid 123-456 |
-mfi 123-456 |
-movefromid last |
-mfi last |
-movefromid 123 invalid |
-mfi 123 invalid |
-movefromid invalid invalid |
-mfi invalid invalid |
(requires <cat> as paramter) |
-movefromcat |
-mfc |
-movefromcat cat |
-mfc cat |
-movefromcat ca*t |
-mfc ca*t |
-movefromcat cat invalid |
-mfc cat invalid |
-movefromcat ca*t invalid |
-mfc ca*t invalid |
(parameter <cat> is optional) |
-le |
-listent |
-le category with spaces |
-listent category with spaces |
-le cate*gory with spaces |
-listent cate*gory with spaces |
(no parameters allowed) |
-listcurent |
-lce |
-listcurent invalid |
-lce invalid |
(parameter <cat> is optional) |
-listcat |
-ls |
-lc |
-listcat cat with spaces |
-ls cat with spaces |
-lc cat with spaces |
-listcat cat w*ith spaces |
-ls cat w*ith spaces |
-lc cat w*ith spaces |
(no parameters allowed) |
-clear |
-cls |
-clear invalid |
-cls invalid |
(no parameters allowed) |
-batch |
-bat |
-batch invalid |
-bat invalid |
(no parameters allowed) |
-sub |
-su |
-sub invalid |
-su invalid |
(no parameters allowed) |
-showhistory |
-shi |
-showhistory invalid |
-shi invalid |
(no parameters allowed) |
-help |
-h |
-? |
-help invalid |
-h invalid |
-? invalid |
(no parameters allowed) |
-exit |
-quit |
-x |
-q |
-exit invalid |
-quit invalid |
-x invalid |
-q invalid |
Property changes: |
Added: svn:executable |
+* |
\ No newline at end of property |