# comment # variable with assignment string var=value # dito, in quotes VIRUS_NAMES="(swen|sobig|novarg)" # assigning variable to variable FROM_NOTIFY=$FROM_NOTIFY FROM_NOTIFY="^From: *\"?($FROM_NOTIFY)" # TODO: special variables (VERBOSE, INCLUDERC) should be highlighted # differently. :0 * condition-re SAVE :0 * condition-re | pipe it into some program with $arguments "$arg" :0 B * 1^0 ^This is the Postfix program at * 2^0 VIRUS_BODY_DELIVERFAIL__ ?? ^^1^^ { VIRUS_BODYBOUNCE_SCORE__=$= } # Storing command output into variables # (The '=|' is operator and should be same colour; # the '| Lines -,' shouldn't be string-colourd but command-coloured.) :0 * FORWARDTO ?? ^^FILE: \/.*^^ FORWARDTO=| Lines -x "$MATCH" | Lines -, :0 E FORWARDTO=| mailt -e "$FORWARDTO" NL=" " TAB=" " LOG="some text, with following newline #" LOG="some text, with following newline$NL" var=value var="value" :0 * cond SAVE # scanning for quoted string should stop at EOL / " # sub-pattern scanning doesn't stay within parent-pattern REs! # broken: FWD_="$COMMITTEEFORWARDTO$MEMBERSFORWARDTO" :0 * DISABLESPAMTEST ?? ^^(1|yes|true|y|t)^^ { # Save copy to folder, and stop processing if nowhere to forward to :0: * FWD_ ?? ^^^^ $LISTFOLDER :0 c: $LISTFOLDER }