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

  1. # SML mode
  2. #
  3. # Chris Inacio
  4. # inacio@ece.cmu.edu
  5.  
  6. colorize SML
  7. {
  8.     SyntaxParser = 'SIMPLE';
  9.  
  10.     color
  11.     {
  12.         {'Normal', 'Editor_Default'},
  13.         {'Number', 'Lang_DecimalNumber'},
  14.         {'Punctuation','Lang_Preprocessor'},
  15.         {'String','Lang_String'},
  16.         {'Comment','Lang_Comment'},
  17.         {'Label','Lang_Label'},
  18.         {'Function','Lang_Function'}
  19.     };
  20.  
  21.     keyword 'Editor_Keywords'
  22.     {
  23.         'structure', 'and', 'local', 'in', 'end', 'signature', 'functor',
  24.         'struct', 'let', 'sig', 'where type', 'val', 'eqtype', 'type',
  25.         'datatype', 'exception', 'sharing', 'include', 'fun', 'abstype',
  26.         'open', 'infix', 'infixr', 'nonfix', 'raise', 'if', 'while',
  27.         'case', 'fn', 'op',
  28.     };
  29.  
  30.     h_state 0 {'Normal'}
  31.     h_trans {1, '>', '(*', 'Comment'}
  32.     h_trans {2, '', '"', 'String'}
  33.     h_trans {3, 's', '0-9', 'Number'}
  34.     h_trans {0, 'S', '_a-zA-Z0-9', 'Punctuation'}
  35.     h_trans {4, '-s', 'a-zA-Z_', 'Normal' }
  36.  
  37.     h_state 1 {'Comment'}
  38.     h_trans {0, '<', '*)', 'Comment'}
  39.  
  40.     h_state 2 {'String'}
  41.     h_trans {0, '', '"', 'String'}
  42.  
  43.     h_state 3 {'Number'}
  44.     h_trans {0, 'S-', '0-9\.', 'Number'}
  45.  
  46.     h_state 4 { 'Normal' }
  47.     h_trans { 0, '$', '', 'Normal' }
  48.     h_wtype { 0, 0, 0, 'i', 'a-zA-Z0-9_' }
  49. }
  50.  
  51. mode SML: PLAIN {
  52.     FileNameRx     = /\.\c{SML}$/;
  53.     HilitOn        = 1;
  54.     Colorizer      = 'SML';
  55.     AutoIndent     = 1;
  56.     IndentMode     = 'PLAIN';
  57.     TabSize        = 3;
  58.     SpaceTabs      = 1;
  59.     MatchCase      = 1;
  60.     Trim           = 1;
  61.     MultiLineHilit = 1;
  62.     AutoHilitParen = 1;
  63.     SaveFolds      = 2;
  64.     CommentStart   = ' (*';
  65.     CommentEnd     = '*)';
  66. }
  67.  
  68.