home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / lxprdef.zip / Def.lxl next >
Text File  |  1997-04-28  |  4KB  |  95 lines

  1. /*----------------------------------------------------------------------------
  2.   File:    Def.lxl                                  Administrator: DFX Systems
  3.                                                     Creation date:    04/24/97
  4.  
  5.   Project: Lpex Customizations                      Last update:      04/24/97
  6.     ------------------------------------------------------------------------
  7.     Purpose:
  8.       This is the load macro for DEF files.
  9.  
  10.     ------------------------------------------------------------------------
  11.     Notes:
  12.       Place this load macro in the same directory as your other Lpex macros.
  13.       Place LxPrDef.dll in the same directory as your other Lpex DLLs.  You
  14.       should now have syntax highlighting for all your Module Defintion
  15.       files.  Or at least for any Module Definition files with the file
  16.       extension of .DEF  ;-)
  17.  
  18.       Complete source code for LxPrDef.dll is available on request.  Simply
  19.       e-mail me:
  20.  
  21.         Mark Miesfeld
  22.         DFX Systems
  23.         5110 E Bellevue St #109
  24.         Tucson AZ 85712
  25.  
  26.         miesfeld@acm.org
  27.  
  28.   ----------------------------------------------------------------------------*/
  29. trace off
  30.  
  31. /* this is a *.DEF file */
  32. 'SET DOCTYPE DEF'
  33.  
  34. /* The DEF classes are set in the initial parse.  Any user classes should be
  35.    set after these first 8 classes.  Changing the parser classes will cause
  36.    the parser to not work propely.  (In most cases.)
  37.  
  38.    This is the classes list the parser sets:
  39.  
  40.    CLASSES Space Statement Export Import Comment Text Error OpenLiteral
  41.  
  42.    If any additional classes are desired they should be set with a command
  43.    such as this:
  44.  
  45.  SET CLASSES Space Statement Export Import Comment Text Error OpenLiteral MyClass
  46.  
  47. */
  48.  
  49. /* Initial fonts settings.
  50.  
  51.    The fonts used by the parser:
  52.  
  53.      #define FONT_TEXT          'T'
  54.      #define FONT_STATEMENT     'S'
  55.      #define FONT_RESERVED      'R'
  56.      #define FONT_EXPORT        'E'
  57.      #define FONT_IMPORT        'I'
  58.      #define FONT_COMMENT       'C'
  59.      #define FONT_LITERAL       'L'
  60.      #define FONT_SYMBOL        'Y'
  61.      #define FONT_NUMBER        'N'
  62.      #define FONT_ERROR         'Z'
  63.      #define FONT_LAYOUT        '_'
  64.  
  65.  */
  66. 'SET FONT.T  BLACK/WHITE                  "Module statement text"'
  67. 'SET FONT.S  BLUE/WHITE                   "Module statement"'
  68. 'SET FONT.R  BRIGHT BLUE/WHITE            "Linker reserved word"'
  69. 'SET FONT.E  GREEN/WHITE                  "Exports"'
  70. 'SET FONT.I  BROWN/WHITE                  "Imports"'
  71. 'SET FONT.C  CYAN/WHITE                   "Comment"'
  72. 'SET FONT.L  PINK/WHITE                   "String literal"'
  73. 'SET FONT.Y  RED/WHITE                    "Symbol"'
  74. 'SET FONT.N  GREY/WHITE                   "Number"'
  75. 'SET FONT.Z  REVERSE BRIGHT RED/WHITE     "Error"'
  76. 'SET FONT._  BLUE/WHITE                   "Layout blanks"'
  77.  
  78. /* Set some file specific menu items.                                         */
  79. 'SET ACTIONBAR.~View.SEPARATOR 2 ;'
  80. 'SET ACTIONBAR.~View.~Exports 3 ;SET INCLUDE EXPORT;SET EXCLUDE;SET VIEWNAME Exports'
  81. 'SET ACTIONBAR.~View.~Imports 4 ;SET INCLUDE IMPORT;SET EXCLUDE;SET VIEWNAME Imports'
  82. 'SET ACTIONBAR.~View.~Comments 5;SET INCLUDE COMMENT;SET EXCLUDE;SET VIEWNAME Comments'
  83.  
  84.  
  85. /* Set some file specific action keys.                                        */
  86. 'SET ACTION.S-F3   ;SET INCLUDE EXPORT ;SET EXCLUDE ;SET VIEWNAME Exports'
  87. 'SET ACTION.S-F4   ;SET INCLUDE IMPORT ;SET EXCLUDE ;SET VIEWNAME Imports'
  88.  
  89. /* Do a full parse, then set the incremental & full parse commands            */
  90. 'PRDEF INITIAL'
  91. 'SET PARSER PRDEF PARSE'
  92. 'SET FULLPARSE PRDEF REPARSE'
  93.  
  94. /* - - - End Of File: Def.lxl - - - - - - - - - - - - - - - - - - - - - - - - */
  95.