home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 24 / CD_ASCQ_24_0995.iso / dos / tools / aurora21 / syntax.aml < prev    next >
Text File  |  1995-08-10  |  8KB  |  172 lines

  1.  
  2. // -------------------------------------------------------------------
  3. // The Aurora Editor v2.1
  4. // Copyright 1993-1995 nuText Systems. All Rights Reserved Worldwide.
  5. //
  6. // Syntax highlighting definitions (included by MAIN.AML)
  7. // (additional definitions are contained in SYNTAX2.AML)
  8. //
  9. // Note: to conserve editor resources, include only the syntax
  10. // highlighting definitions you actually use.
  11. //
  12. // If you have made any changes, save this file and select 'Recompile
  13. // the Editor' <alt f2> from the Set menu. Exit and re-enter the
  14. // editor for your changes to take effect.
  15. // -------------------------------------------------------------------
  16.  
  17.   object  a
  18.  
  19.   // The 'onsyntax' function is called by the editor to return the
  20.   // syntax highlighting object (defined below) associated with a file
  21.   // name.
  22.  
  23.   function  onsyntax (file)
  24.     forward  getext
  25.     case getext file
  26.       when ".C", ".H", ".CPP"        "c"
  27.       when ".AML"                    "aml"
  28.       when ".DOX"                    "dox"
  29.       otherwise                      ''
  30.     end
  31.   end
  32.  
  33.  
  34.   // syntax highlighting for Aurora Macro Language files (.AML)
  35.   object  aml
  36.  
  37.     syntax
  38.       'bfin'                          // options:
  39.                                       //   b=show through marked block
  40.                                       //   c=don't highlight cursor line
  41.                                       //   f=use only foreground colors
  42.                                       //   i=ignore keyword case
  43.                                       //   n=highlight numbers
  44.       '()=+-*/<>|&^,[]:'              // symbol set
  45.       '"\''                           // string characters
  46.       '\\'                            // string literal char
  47.       ''                              // numeric symbol
  48.       '//'          0                 // eol comment 1 / start column
  49.       ''            0                 // eol comment 2 / start column
  50.       '/*'          '*/'              // multi-line comment 1
  51.       ''            ''                // multi-line comment 2
  52.       0                               // number of lines to scan backward
  53.  
  54.       color brightcyan   on black     // keyword color
  55.       color gray         on cyan      // symbol color
  56.       color brightred    on black     // string color
  57.       color brightred    on black     // numeric color
  58.       color brightgreen  on black     // eol1 comment color
  59.       color yellow       on black     // eol2 comment color
  60.       color brightgreen  on black     // comment1 color
  61.       color brightgreen  on black     // comment2 color
  62.  
  63.     keyword
  64.       and, break, call, case, color, databuf, define, do, end, endcase,
  65.       enddatabuf, enddefine, endfunction, endif, endkey, endloop,
  66.       endmenu, endmenubar, endwhile, else, elseif, eval, forward,
  67.       function, if?, if, include, key, loop, mod, menubar, menu, not,
  68.       or, otherwise, object, queue, return, repeat, ref, shl, shr, send,
  69.       setxfun, setx, setxobj, setobj, set, sizeof, then, until, var,
  70.       when, while
  71.  
  72.  
  73.   // syntax highlighting for C/C++ files (.C, .CPP, .H)
  74.   object  c
  75.  
  76.     syntax
  77.       'bfn'                           // options:
  78.                                       //   b=show through marked block
  79.                                       //   c=don't highlight cursor line
  80.                                       //   f=use only foreground colors
  81.                                       //   i=ignore keyword case
  82.                                       //   n=highlight numbers
  83.       '()[]{}.=+-*/%:;<>|&,~!^?'      // symbol set
  84.       '\'"'                           // string characters
  85.       '\\'                            // string literal char
  86.       ''                              // numeric symbol
  87.       '//'          0                 // eol comment 1 / start column
  88.       ''            0                 // eol comment 2 / start column
  89.       '/*'          '*/'              // multi-line comment 1
  90.       ''            ''                // multi-line comment 2
  91.       0                               // number of lines to scan backward
  92.  
  93.       color brightcyan   on black     // keyword color
  94.       color gray         on cyan      // symbol color
  95.       color brightred    on black     // string color
  96.       color brightred    on black     // numeric color
  97.       color brightgreen  on black     // eol1 comment color
  98.       color yellow       on black     // eol2 comment color
  99.       color brightgreen  on black     // comment1 color
  100.       color brightgreen  on black     // comment2 color
  101.  
  102.     keyword
  103.       #define, #else, #endif, #ifdef, #ifndef, #if, #include, #line,
  104.       #undef, asm, auto, break, case, catch, cdecl, char, class, const,
  105.       continue, default, delete, double, do, else, enum, extern, far,
  106.       float, for, friend, goto, huge, if, inline, interrupt, int, long,
  107.       near, new, operator, pascal, private, protected, public, register,
  108.       return, short, signed, sizeof, static, struct, switch, template,
  109.       this, typedef, union, unsigned, virtual, void, volatile, while
  110.  
  111.  
  112.   // syntax highlighting for Aurora document files (.DOX)
  113.   object  dox
  114.  
  115.     syntax
  116.       'bfn'                           // options:
  117.                                       //   b=show through marked block
  118.                                       //   c=don't highlight cursor line
  119.                                       //   f=use only foreground colors
  120.                                       //   i=ignore keyword case
  121.                                       //   n=highlight numbers
  122.       '.:,-+*;=()[]<>{}|─│┌┐┘└┤┴┬├┼'  // symbol set
  123.       '"\''                           // string characters
  124.       '\\'                            // string literal char
  125.       ''                              // numeric symbol
  126.       '//'          0                 // eol comment 1 / start column
  127.       '  '          0                 // eol comment 2 / start column
  128.       '/*'          '*/'              // multi-line comment 1
  129.       ' '           ' '               // multi-line comment 2
  130.       0                               // number of lines to scan backward
  131.  
  132.       color brightcyan   on black     // keyword color
  133.       color gray         on cyan      // symbol color
  134.       color white        on white     // string color
  135.       color brightred    on black     // numeric color
  136.       color brightgreen  on black     // eol1 comment color
  137.       color yellow       on black     // eol2 comment color
  138.       color brightgreen  on black     // comment1 color
  139.       color brightcyan   on black     // comment2 color
  140.  
  141.  
  142.   // default syntax highlight object (for highlighting words in
  143.   // text files)
  144.   object  syndef
  145.  
  146.     syntax
  147.       'bfi'                           // options:
  148.                                       //   b=show through marked block
  149.                                       //   c=don't highlight cursor line
  150.                                       //   f=use only foreground colors
  151.                                       //   i=ignore keyword case
  152.                                       //   n=highlight numbers
  153.       '.,;:\'"?!()<>|'                // symbol set
  154.       ''                              // string characters
  155.       ''                              // string literal char
  156.       ''                              // numeric symbol
  157.       ''            0                 // eol comment 1 / start column
  158.       ''            0                 // eol comment 2 / start column
  159.       ''            ''                // multi-line comment 1
  160.       ''            ''                // multi-line comment 2
  161.       0                               // number of lines to scan backward
  162.  
  163.       color brightcyan   on black        // keyword color
  164.       color white        on white        // symbol color
  165.       color brightred    on brightred    // string color
  166.       color brightred    on brightred    // numeric color
  167.       color brightgreen  on brightgreen  // eol1 comment color
  168.       color yellow       on yellow       // eol2 comment color
  169.       color brightgreen  on brightgreen  // comment1 color
  170.       color brightcyan   on brightcyan   // comment2 color
  171.  
  172.