home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / fteo46b5.zip / fteo46b5 / config / m_make.fte < prev    next >
Text File  |  1997-06-23  |  3KB  |  96 lines

  1. colorize MAKE {
  2.     SyntaxParser        = 'SIMPLE';
  3.  
  4.     color {
  5.         { 'Normal',        'Lang_Default' },
  6.         { 'Comment',       'Lang_Comment' },
  7.         { 'Directive',     'Lang_Control' },
  8.         { 'Command',       'Lang_Command' },
  9.         { 'CPreprocessor', 'Lang_Preprocessor' },
  10.         { 'Punctuation',   'Lang_Punctuation' },
  11.         { 'Label',         'Lang_Label' }, # Should be Macro
  12.     };
  13.  
  14.     # Macros
  15.     keyword 'Lang_Label' {
  16.         '__MSDOS__', '__NT__', '__OS2__',
  17.         '__MAKEOPTS__', '__MAKEFILES__',
  18.     };
  19.  
  20.     # Directives
  21.     keyword 'Lang_Control' {
  22.         '.autodepend', '.symbolic', '.precious', '.ignore', '.erase',
  23.         '.hold', '.silent', '.block', '.nocheck', '.continue',
  24.         '.optimize', '.extensions:',
  25.         '.before', '.after',
  26.     };
  27.  
  28.     # Commands
  29.     keyword 'Lang_Command' {
  30.         'break', 'call', 'chdir', 'cd', 'cls', 'cmd', 'command',
  31.         'copy', 'ctty', 'date', 'del', 'dir', 'echo', 'echo.',
  32.         'erase', 'for', 'if', 'md', 'mkdir', 'path', 'pause',
  33.         'prompt', 'ren', 'rename', 'rmdir', 'rd', 'set', 'time',
  34.         'type', 'ver', 'verify', 'vol',
  35.  
  36.         # Internal command (other color might be good idea)
  37.         '%null', '%stop', '%quit', '%abort', '%make',
  38.         '%create', '%write', '%append',
  39.     };
  40.  
  41.     h_state 0 { 'Normal' }
  42.     h_trans { 1, '', '#' , 'Comment' }
  43.     h_trans { 2, '-^', '!', 'Normal' }
  44.     h_trans { 4, '<', '$', 'Label' }
  45.     h_trans { 3, 's', '=+;:@!*', 'Punctuation' }
  46.     h_wtype { -1, -1, -1, 'i', 'a-zA-Z0-9_.:%' }
  47.  
  48.     h_state 1 { 'Comment' }
  49.     h_trans { 0, '$', '', 'Comment' }
  50.  
  51.     h_state 2 { 'Normal' }
  52.     h_trans { 0, '$', '', 'Normal' }
  53.     h_wtype { -1, 0, -1, 'i', 'a-zA-Z0-9!' }
  54.     h_words 'Lang_Preprocessor' {
  55.         '!',
  56.         'include', 'error', 'define', 'undef',
  57.         'ifeq', 'ifneq', 'ifdef', 'ifndef', 'else', 'endif',
  58.         '!include', '!error', '!define', '!undef',
  59.         '!ifeq', '!ifneq', '!ifdef', '!ifndef', '!else', '!endif',
  60.     }
  61.  
  62.     h_state 3 { 'Normal' }
  63.     h_trans { 0, '', '', 'Normal' }
  64.  
  65.     h_state 4 { 'Label' }
  66.     h_trans { 0, '$', '', 'Normal' }
  67.     h_trans { 3, 's', '$#@*<?+-', 'Label' }
  68.     h_trans { 6, 's', '^[]', 'Label' }
  69.     h_trans { 5, '<', '(', 'Label' }
  70.     h_trans { 7, 's', 'a-zA-Z0-9_', 'Label' }
  71.     h_trans { 0, '', '', 'Normal' }
  72.  
  73.     h_state 5 { 'Label' }
  74.     h_trans { 3, '>', ')', 'Label' }
  75.     h_trans { 0, '-S', 'a-zA-Z0-9_', 'Normal' }
  76.  
  77.     h_state 6 { 'Label' }
  78.     h_trans { 3, 's', '@*&.:', 'Label' }
  79.     h_trans { 0, '', '', 'Normal' }
  80.  
  81.     h_state 7 { 'Label' }
  82.     h_trans { 0, '-S', 'a-zA-Z0-9_', 'Normal' }
  83. }
  84.  
  85. mode MAKE: PLAIN {
  86.     FileNameRx          = /\c{makefile}|{\.{MAK}|{MK}|{MIF}$}/;
  87.     HilitOn             = 1;
  88.     Colorizer           = 'MAKE';
  89.  
  90.     RoutineRegexp       = '^[^:\#]+:';
  91.  
  92.     SaveFolds           = 2;      # save fold info at end of line
  93.     CommentStart        = ' #';
  94.     CommentEnd          = '';
  95. }
  96.