home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / contrib / icon.cgsyn < prev    next >
Text File  |  2002-11-22  |  3KB  |  110 lines

  1. # syntax file for Code-Genie 3.0
  2.  
  3. # Subject: Icon syntax highlighting file for Code-Genie
  4. # Date: Fri, 22 Nov 2002 13:02:19 -0600
  5. # From: Jon Leger <JLeger@AFSLogistics.com>
  6. # To:   icon-project@CS.Arizona.EDU
  7. #
  8. # I have put together a syntax highlighting file for Code-Genie
  9. # that color-codes Icon/Unicon code.  Code-Genie, if you aren't aware,
  10. # is a freeware source code editor for Windows.  It's a pretty
  11. # groovy one, too (imho).
  12. # I've attached the file.  It goes in the "syn" directory
  13. # under the main program directory.  One line needs to be put
  14. # into the settings file.
  15. # DefaultSyntax     icon         icn
  16. # It goes below the other DefaultSyntax lines.
  17.  
  18. # The Icon Programming Language
  19. # http://www.cs.arizona.edu/icon/
  20. #
  21. # Also works with Unicon.
  22. # http://unicon.sourceforge.net
  23. #
  24. # If you've found this useful or have any
  25. # questions or comments, please feel free
  26. # to contact me, Jonathan Leger, at:
  27. # jonathanleger@yahoo.com
  28.  
  29. CaseInsensitive         false
  30.  
  31. BlockStart        string "
  32. BlockEnd        string "
  33. BlockNotEnd        string \\"
  34. FgColor            string        #FF0000
  35.  
  36. BlockStart        cset '
  37. BlockEnd        cset '
  38. BlockNotEnd        cset \\'
  39. FgColor            cset        #FF6820
  40.  
  41. BlockStart        comment #
  42. BlockEnd        comment \n
  43. Format            comment    i
  44. FgColor            comment        #7B7BC0
  45.  
  46. Operator        operators
  47.                 +-~=@^*?!/\\.<>:|{}
  48. FgColor            operators    #0000ff
  49.  
  50. KeywordGroup    operator_keys
  51.                 not
  52. FgColor            operator_keys #0000ff
  53.  
  54. Operator        comma
  55.                 ,
  56. Format            comma    b
  57. FgColor            comma    #009300
  58.  
  59. Operator        parens
  60.                 ()
  61. Format            parens    b
  62. FgColor            parens    #4B0082
  63.  
  64. Operator        generators
  65.                 !
  66.  
  67. Operator        lists
  68.                 []
  69. Format            lists    b
  70. FgColor            lists    #68838B
  71.             
  72. Format            generators    b
  73. FgColor            generators    #0000ff
  74.  
  75. KeywordGroup      keywords
  76.                 if then else while do until every repeat procedure end local global default return break by case create fail initial link next of record static suspend to
  77.  
  78. Format           keywords  b
  79. FgColor          keywords  #0000ff
  80.  
  81. KeywordGroup    functions
  82.                 abs acos any args asin  atan  bal callout center char chdir close collect copy cos cset delay delete detab display dtor entab errorclear exit exp find flush function get getch getche getenv iand icom image insert integer ior ishift ixor kbhit key left list loadfunc  log many map match member move name numeric open ord pop pos proc pull push put read reads real remove rename repl reverse right rtod runerr save seek seq set sin sort sortf sqrt stop string system tab table tan trim type upto variable where write writes
  83. FgColor            functions    #00008B
  84.  
  85. KeywordPrefix    reserved    &
  86. FgColor            reserved    #800080
  87.  
  88. KeywordPrefix    preprocessor $
  89. Format            preprocessor b
  90. FgColor            preprocessor #388E8E
  91.  
  92. Nest        comment            
  93. Nest        string
  94. Nest        cset
  95. Nest        operators
  96. Nest        operator_keys
  97. Nest        comma
  98. Nest        parens
  99. Nest        generators
  100. Nest        procedures
  101. Nest        lists
  102. Nest         keywords
  103. Nest        functions
  104. Nest        reserved
  105. Nest        preprocessor
  106. # eof
  107.