Tartarus CVS: zap ds

tartarus-commits@lists.tartarus.org tartarus-commits@lists.tartarus.org
Wed, 14 Aug 2002 20:32:24 +0100


CVSROOT:	/usr/data/cvs
Module name:	zap
Changes by:	ds	02/08/14 20:32:24

Modified files:
	dists/mods/!ZapBASIC: !Help,fff 
	sources/tools/config/s: ConfigScan,fff 
	sources/!ZapSource/s: Commands,fff Dispatch,fff KeyBits,fff 
	                      ModeBits,fff StartUp,fff 
	sources/modes/!ZapBASIC/s: BAStxt,fff 
Added files:
	dists/configs/default/Config: FileIdHigh FileIdLow 
	dists/mods/!MakeFile: FileIds,fff 
	dists/mods/!ZapBASIC: FileIds,fff 
	dists/mods/!ZapPerl: FileIds,fff 
	dists/mods/!ZapPython: FileIds,fff 

Log message:
Added "file ID" support. This selects a mode based on the content of the
first non-blank line in the file (if text mode would be selected and is not
forced). This has uses such as ensuring that Perl scripts, filetyped as text
or Unix Ex, are opened in Perl mode.

BASTxt mode will only (de)tokenise if the file's type is BASIC. This is
mainly intended for Brandy users.

ConfigScan has been extended to handle the FileID* files and to better cope
should it ever be used for vast numbers of configuration files in one
directory :-)