! NEdit Highlighting Patterns for procmail ! ! Version 0.1, tested with NEdit 5.4. ! ! http://volker.dnsalias.net/soft/nedit/ ! and perhaps: ! ftp://ftp.nedit.org/pub/contrib/highlighting/ ! ! Load this file by starting nedit with: ! ! nedit -import ! ! Then, check that the patterns were loaded correctly, and choose Save Defaults ! from the Preferences menu. The new patterns will now be incorporated into ! your own .nedit file, so the next time you start NEdit, you will no longer ! need to use -import. ! ! Copyright (C) by Volker Kuhlmann ! Released under the same license as NEdit itself. ! ! ChangeLog: ! 0.1, 04 Jan 2004: Volker Kuhlmann , NEdit 5.4 ! - initial quick hack, incomplete, bad but better than nothing ! 0.2, 05 Jan 2004: Volker Kuhlmann ! - Added Include, ActionSave, ActionSub2 ! - Added sub-colourings of variable assignments ! - Other bug fixes and improvements nedit.languageModes: \ procmail:.procmailrc .rc::::::: nedit.highlightPatterns: \ procmail:5:0{\n\ Comment:"^\\s*#":"$"::Comment::D\n\ Include:"^\\s*INCLUDERC=.*$":::Flag::D\n\ VarAssign:"(?i^\\s*([a-z][a-z0-9_]*=))":"$"::Plain::D\n\ Var1:"\\1":""::Identifier1:VarAssign:DC\n\ Var:"(?i\\$[a-z0-9_]+)":::Identifier2:VarAssign:D\n\ VarExec:"`":"`"::Text Arg:VarAssign:D\n\ VarString:"""":"[^""]"""::String:VarAssign:D\n\ RecipeStart:"^\\s*:0":"$"::Storage Type::D\n\ Condition:"^\\s*\\*":"[^\\\\]$":"^\\s*:\\d":procmail condition::D\n\ ActionPipe:"^\\s*\\|":"[^\\\\]$":"^\\s*:\\d":Preprocessor1::D\n\ ActionSave:"^\\s*[^{}\\s]":"[^\\\\]$":"^\\s*:\\d":Keyword::D\n\ ActionSub:"^\\s*\\{":"(?:}|$)":"^\\s*:\\d":Storage Type1::D\n\ ActionSub2:"^\\s*}":::Storage Type1::D\n\ } nedit.styles: \ procmail condition:brown:Plain