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

  1. colorize SH {
  2.     SyntaxParser = 'SIMPLE';
  3.     
  4.     color {
  5.         { 'Normal',     'Lang_Default' },
  6.         { 'Comment',    'Lang_Comment' },
  7.         { 'String',     'Lang_String' },
  8.         { 'Control',    'Lang_Control' },
  9.         { 'Command',    'Lang_Command' },
  10.         { 'Variable',   'Lang_Variable' },
  11.     };
  12.  
  13.     h_state 0 { 'Command' }
  14.     h_trans { 0, '', '. ', 'Control' }
  15.     h_trans { 0, '', ' ', 'Normal' }
  16.     h_trans { 1, '-s', 'a-zA-Z0-9_./-', 'Command' }
  17.     h_trans { 2, 'qQ', '\\', 'Normal' }
  18.     h_trans { 0, '$', '', 'Command' }
  19.     h_trans { 3, '', '#', 'Comment' }
  20.     h_trans { 4, '', '\'', 'String' }
  21.     h_trans { 5, '', '"', 'String' }
  22.     h_trans { 6, '', '`', 'String' }
  23.  
  24.     h_state 1 { 'Command' }
  25.     h_trans { 0, '$', '', 'Command' }
  26.     h_trans { 3, '', '#', 'Comment' }
  27.     h_wtype { 7, 7, 2, '', 'a-zA-Z0-9_./-' }
  28.     h_words 'Editor_Keywords' {
  29.         'case',    'do', 'done', 'elif', 'else', 'esac', 'fi', 'for', 
  30.         'function', 'if', 'in', 'then', 'until', 'while',
  31.     }
  32.  
  33.     h_state 2 { 'Normal' }
  34.     h_trans { 2, 'qQ', '\\', 'Control' }
  35.     h_trans { 0, '$', '', 'Command' }
  36.     h_trans { 3, '', '#', 'Comment' }
  37.     h_trans { 4, '', '\'', 'String' }
  38.     h_trans { 5, '', '"', 'String' }
  39.     h_trans { 6, '', '`', 'String' }
  40.     h_trans { 0, '', '&&', 'Control' }
  41.     h_trans { 0, '', '||', 'Control' }
  42.     h_trans { 0, '', ';;', 'Control' }
  43.     h_trans { 0, 's', ';&', 'Control' }
  44.     h_trans { 8, '', '<<EOF', 'Control' }
  45.     h_trans { 2, '', '<<', 'Control' }
  46.     h_trans { 2, '', '<', 'Control' }
  47.     h_trans { 2, '', '>>', 'Control' }
  48.     h_trans { 2, '', '>&', 'Control' }
  49.     h_trans { 2, '', '>', 'Control' }
  50.  
  51.     h_state 3 { 'Comment' }
  52.     h_trans { 0, '$', '', 'Command' }
  53.  
  54.     h_state 4 { 'String' }
  55.     h_trans { 2, '', '\'', 'String' }
  56.     h_trans { 4, 'qQ', '\\', 'String' }
  57.  
  58.     h_state 5 { 'String' }
  59.     h_trans { 2, '', '"', 'String' }
  60.     h_trans { 5, 'qQ', '\\', 'String' }
  61.  
  62.     h_state 6 { 'String' }
  63.     h_trans { 2, '', '`', 'String' }
  64.     h_trans { 6, 'qQ', '\\', 'String' }
  65.  
  66.     h_state 7 { 'Command' }
  67.     h_trans { 2, '-S', 'a-zA-Z0-9_./-', 'Command' }
  68.     h_trans { 0, '$', '', 'Normal' }
  69.  
  70.     h_state 8 { 'String' }
  71.     h_trans { 0, '^$', 'EOF', 'Control' }
  72. }
  73.  
  74. mode SH: PLAIN { # *sh
  75.     FileNameRx          = /\.\cSH$/;
  76.     FirstLineRx         = /^\#\![^ ]*sh>/;
  77.     HilitOn             = 1;
  78.     Colorizer           = 'SH';
  79.     MultiLineHilit      = 1;
  80.     AutoHilitParen      = 1;
  81.     
  82.     SaveFolds           = 2;      # save fold info at end of line
  83.     CommentStart        = ' #';
  84.     CommentEnd          = '';
  85. }
  86.