home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
lxprdef.zip
/
Def.lxl
next >
Wrap
Text File
|
1997-04-28
|
4KB
|
95 lines
/*----------------------------------------------------------------------------
File: Def.lxl Administrator: DFX Systems
Creation date: 04/24/97
Project: Lpex Customizations Last update: 04/24/97
------------------------------------------------------------------------
Purpose:
This is the load macro for DEF files.
------------------------------------------------------------------------
Notes:
Place this load macro in the same directory as your other Lpex macros.
Place LxPrDef.dll in the same directory as your other Lpex DLLs. You
should now have syntax highlighting for all your Module Defintion
files. Or at least for any Module Definition files with the file
extension of .DEF ;-)
Complete source code for LxPrDef.dll is available on request. Simply
e-mail me:
Mark Miesfeld
DFX Systems
5110 E Bellevue St #109
Tucson AZ 85712
miesfeld@acm.org
----------------------------------------------------------------------------*/
trace off
/* this is a *.DEF file */
'SET DOCTYPE DEF'
/* The DEF classes are set in the initial parse. Any user classes should be
set after these first 8 classes. Changing the parser classes will cause
the parser to not work propely. (In most cases.)
This is the classes list the parser sets:
CLASSES Space Statement Export Import Comment Text Error OpenLiteral
If any additional classes are desired they should be set with a command
such as this:
SET CLASSES Space Statement Export Import Comment Text Error OpenLiteral MyClass
*/
/* Initial fonts settings.
The fonts used by the parser:
#define FONT_TEXT 'T'
#define FONT_STATEMENT 'S'
#define FONT_RESERVED 'R'
#define FONT_EXPORT 'E'
#define FONT_IMPORT 'I'
#define FONT_COMMENT 'C'
#define FONT_LITERAL 'L'
#define FONT_SYMBOL 'Y'
#define FONT_NUMBER 'N'
#define FONT_ERROR 'Z'
#define FONT_LAYOUT '_'
*/
'SET FONT.T BLACK/WHITE "Module statement text"'
'SET FONT.S BLUE/WHITE "Module statement"'
'SET FONT.R BRIGHT BLUE/WHITE "Linker reserved word"'
'SET FONT.E GREEN/WHITE "Exports"'
'SET FONT.I BROWN/WHITE "Imports"'
'SET FONT.C CYAN/WHITE "Comment"'
'SET FONT.L PINK/WHITE "String literal"'
'SET FONT.Y RED/WHITE "Symbol"'
'SET FONT.N GREY/WHITE "Number"'
'SET FONT.Z REVERSE BRIGHT RED/WHITE "Error"'
'SET FONT._ BLUE/WHITE "Layout blanks"'
/* Set some file specific menu items. */
'SET ACTIONBAR.~View.SEPARATOR 2 ;'
'SET ACTIONBAR.~View.~Exports 3 ;SET INCLUDE EXPORT;SET EXCLUDE;SET VIEWNAME Exports'
'SET ACTIONBAR.~View.~Imports 4 ;SET INCLUDE IMPORT;SET EXCLUDE;SET VIEWNAME Imports'
'SET ACTIONBAR.~View.~Comments 5;SET INCLUDE COMMENT;SET EXCLUDE;SET VIEWNAME Comments'
/* Set some file specific action keys. */
'SET ACTION.S-F3 ;SET INCLUDE EXPORT ;SET EXCLUDE ;SET VIEWNAME Exports'
'SET ACTION.S-F4 ;SET INCLUDE IMPORT ;SET EXCLUDE ;SET VIEWNAME Imports'
/* Do a full parse, then set the incremental & full parse commands */
'PRDEF INITIAL'
'SET PARSER PRDEF PARSE'
'SET FULLPARSE PRDEF REPARSE'
/* - - - End Of File: Def.lxl - - - - - - - - - - - - - - - - - - - - - - - - */