home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / fte0827.zip / config / m_ebnf.fte < prev    next >
Text File  |  1999-05-16  |  944b  |  36 lines

  1. colorize EBNF {
  2.     SyntaxParser        = 'SIMPLE';
  3.     
  4.     color {
  5.         { 'Normal',      'Lang_Default' },
  6.         { 'String',      'Lang_String' },
  7.         { 'Symbol',      'Lang_Function' },
  8.         { 'Punctuation', 'Lang_Punctuation' },
  9.         { 'Comment',     'Lang_Comment' },
  10.     };
  11.     
  12.     h_state 0 { 'Normal' }
  13.     h_trans { 1, '', '#', 'Comment' }
  14.     h_trans { 2, '<', '"', 'String' }
  15.     h_trans { 0, 's', '.|{}=[]()', 'Punctuation' }
  16.  
  17.     h_state 1 { 'Comment' }
  18.     h_trans { 0, '$', '', 'Normal' }
  19.  
  20.     h_state 2 { 'Symbol' }
  21.     h_trans { 0, '>', '"', 'String' }
  22.     h_trans { 0, '$', '', 'String' }
  23.     h_trans { 2, 'Qq', '\\', 'Symbol' }
  24. }
  25.  
  26. mode EBNF: PLAIN {
  27.     FileNameRx          = '\\.\\c{EBNF}$';
  28.     Colorizer           = 'EBNF';
  29.     HilitOn             = 1;
  30.     AutoIndent          = 1;
  31.     IndentMode          = 'PLAIN';
  32.     TabSize             = 8;
  33.     MultiLineHilit      = 1;
  34.     AutoHilitParen      = 1;
  35. }
  36.