home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Freeware / Programare / Sharpdev / 099bsetup.exe / Jay-Mode.xshd < prev    next >
Extensible Markup Language  |  2003-10-16  |  4KB  |  109 lines

  1. <?xml version="1.0" ?>
  2. <!-- syntaxdefinition for XML 2000 by Mike Krueger -->
  3. <SyntaxDefinition name="Jay" extensions=".jay">
  4.     <Environment>
  5.         <Default      color = "SystemColors.WindowText"    bgcolor = "SystemColors.Window"/>
  6.         <Selection    color = "SystemColors.HighlightText" bgcolor = "SystemColors.Highlight"/>
  7. <!--        <Selection    bgcolor = "LightBlue"/> -->
  8.         <VRuler       color = "SystemColors.ControlLight"/>
  9.         <InvalidLines color = "Red"/>
  10.         <CaretMarker  color = "Yellow"/>
  11.         
  12.         <LineNumbers  color = "SystemColors.ControlDark" bgcolor = "SystemColors.Window"/>
  13.         
  14.         <FoldLine     color = "#808080" bgcolor="Black"/>
  15.         <FoldMarker   color = "#808080" bgcolor="White"/>
  16.         
  17.         <EOLMarkers   color = "#E0E0E5"/>
  18.         <SpaceMarkers color = "#E0E0E5"/>
  19.         <TabMarkers   color = "#E0E0E5"/>
  20.     </Environment>
  21.     <Digits name="Digits" bold="false" italic="false" color="DarkBlue" />
  22.     <RuleSets>
  23.         <RuleSet ignorecase="false" noescapesequences="true">
  24.             <!-- It is not necessary to define span-delimiting characters as delimiters -->
  25.             <Delimiters></Delimiters>
  26.  
  27.  
  28.             <Span name="Jay" rule="CSharp" bold="false" italic="false" color="DarkSlateGray" stopateol="false">
  29.                 <Begin  bold = "true" color = "Black">%{</Begin>
  30.                 <End  bold = "true" color = "Black">%}</End>
  31.             </Span>
  32.  
  33.             <Span name="Jay" rule="JayDecl" bold="false" italic="false" color="DarkSlateGray" stopateol="false">
  34.                 <Begin>%%</Begin>
  35.                 <End>%%</End>
  36.             </Span>
  37.             
  38.             <Span name = "LINECOMMENT" bold = "false" italic = "true" color = "Gray" stopateol = "true">
  39.                    <Begin>//</Begin>
  40.             </Span>
  41.             
  42.             <Span name = "BLOCKCOMMENT" bold = "false" italic = "true" color = "Gray" stopateol = "false">
  43.                 <Begin>/*</Begin>
  44.                 <End>*/</End>
  45.             </Span>
  46.             
  47.             <Span name = "STRING" bold = "false" italic = "false" color = "Magenta" stopateol = "true">
  48.                 <Begin>"</Begin>
  49.                 <End>"</End>
  50.             </Span>
  51.             
  52.             <Span name = "CHAR" bold = "false" italic = "false" color = "Magenta" stopateol = "true">
  53.                 <Begin>'</Begin>
  54.                 <End>'</End>
  55.             </Span>
  56.             
  57.             <KeyWords name = "LexerDefinition" bold = "true" italic = "false" color = "Green">
  58.                 <Key word = "%token" />
  59.                 <Key word = "%nonassoc" />
  60.                 <Key word = "%left" />
  61.                 <Key word = "%right" />
  62.                 <Key word = "%start" />
  63.             </KeyWords>
  64.  
  65.         </RuleSet>
  66.  
  67.         <RuleSet name="CSharp" reference = "C#" ignorecase="false" noescapesequences="true">
  68.             <Delimiters>/=</Delimiters>
  69.     
  70.             <KeyWords name = "LexerDefinition" bold = "true" italic = "false" color = "Red">
  71.                 <Key word = "$1" />
  72.                 <Key word = "$2" />
  73.                 <Key word = "$3" />
  74.                 <Key word = "$4" />
  75.                 <Key word = "$$" />
  76.             </KeyWords>
  77.         </RuleSet>
  78.  
  79.         <RuleSet name="JayDecl" ignorecase="false" noescapesequences="true">
  80.             <Delimiters>&<>~!@%^*()-+=|\#/{}[]:;"' ,    .?</Delimiters>
  81.             
  82.             <Span name="Jay" rule="CSharp" bold="false" italic="false" color="DarkSlateGray" stopateol="false">
  83.                 <Begin bold = "true" color = "Black">{</Begin>
  84.                 <End bold = "true" color = "Black">}</End>
  85.             </Span>
  86.             
  87.             <Span name = "LINECOMMENT" bold = "false" italic = "true" color = "Gray" stopateol = "true">
  88.                    <Begin>//</Begin>
  89.             </Span>
  90.             
  91.             <Span name = "BLOCKCOMMENT" bold = "false" italic = "true" color = "Gray" stopateol = "false">
  92.                 <Begin>/*</Begin>
  93.                 <End>*/</End>
  94.             </Span>
  95.             
  96.             <MarkPrevious bold = "true" italic = "false" color = "Red">:</MarkPrevious>
  97.             
  98.             <KeyWords name = "Punctuation" bold = "true" italic = "false" color = "Black">
  99.                 <Key word = ";" />
  100.                 <Key word = "|" />
  101.                 <Key word = ":" />
  102.             </KeyWords>
  103.           
  104.  
  105.         </RuleSet>
  106.     </RuleSets>
  107. </SyntaxDefinition>
  108.         
  109.