Free cookie consent management tool by TermsFeed Policy Generator

source: branches/WebJobManager/HeuristicLab.ExtLibs/HeuristicLab.AvalonEdit/5.0.1/AvalonEdit-5.0.1/Highlighting/Resources/Coco-Mode.xshd

Last change on this file was 11700, checked in by jkarder, 10 years ago

#2077: created branch and added first version

File size: 2.8 KB
Line 
1<?xml version="1.0" ?>
2<!-- syntaxdefinition for Coco/R 2003 by Mike Krueger -->
3<!-- converted to AvalonEdit format by Siegfried Pammer in 2010 -->
4<SyntaxDefinition name="Coco" extensions=".atg" xmlns="http://icsharpcode.net/sharpdevelop/syntaxdefinition/2008">
5  <Color name="Comment" foreground="#FF808080" fontStyle="italic" />
6  <Color name="Punctuation" foreground="#FF000000" fontWeight="bold" />
7  <Color name="Keywords" foreground="#FF0000FF" fontWeight="bold" />
8  <Color name="String" foreground="#FF006400" />
9  <RuleSet ignoreCase="false">
10    <Rule color="Punctuation">
11      [{}\(\)\[\]|+\-=\.]+
12    </Rule>
13    <Keywords color="Keywords">
14      <Word>ANY</Word>
15      <Word>CHARACTERS</Word>
16      <Word>COMMENTS</Word>
17      <Word>COMPILER</Word>
18      <Word>CONTEXT</Word>
19      <Word>END</Word>
20      <Word>FROM</Word>
21      <Word>IF</Word>
22      <Word>IGNORE</Word>
23      <Word>NAMESPACE</Word>
24      <Word>NESTED</Word>
25      <Word>PRAGMAS</Word>
26      <Word>PRODUCTIONS</Word>
27      <Word>SYNC</Word>
28      <Word>TO</Word>
29      <Word>TOKENS</Word>
30      <Word>TOKENNAMES</Word>
31      <Word>WEAK</Word>
32      <Word>using</Word>
33    </Keywords>
34    <Span color="Comment">
35      <Begin>//</Begin>
36    </Span>
37    <Span color="Comment" multiline="true">
38      <Begin>/\*</Begin>
39      <End>\*/</End>
40    </Span>
41    <Span foreground="Black" ruleSet="CSharp" multiline="true">
42      <Begin color="Keywords">COMPILER</Begin>
43      <End color="Keywords">TOKENNAMES</End>
44    </Span>
45    <Span color="String">
46      <Begin>"</Begin>
47      <End>"</End>
48    </Span>
49    <Span color="String">
50      <Begin>'</Begin>
51      <End>'</End>
52    </Span>
53    <Span foreground="#FF000000" ruleSet="ParamList">
54      <Begin foreground="#FF000000" fontWeight="bold">&lt;</Begin>
55      <End foreground="#FF000000" fontWeight="bold">&gt;</End>
56    </Span>
57    <Span foreground="#FF2F4F4F" fontWeight="normal" fontStyle="normal" ruleSet="CSharp" multiline="true">
58      <Begin foreground="#FF008000" fontWeight="bold" fontStyle="italic">\(\.</Begin>
59      <End foreground="#FF008000" fontWeight="bold" fontStyle="italic">\.\)</End>
60    </Span>
61    <Rule foreground="#FF00008B" fontWeight="normal" fontStyle="normal">\b0[xX][0-9a-fA-F]+|(\b\d+(\.[0-9]+)?|\.[0-9]+)([eE][+-]?[0-9]+)?</Rule>
62  </RuleSet>
63  <RuleSet name="CSharp" ignoreCase="false">
64    <Import ruleSet="C#/" />
65    <Rule foreground="#FF00008B" fontWeight="normal" fontStyle="normal">\b0[xX][0-9a-fA-F]+|(\b\d+(\.[0-9]+)?|\.[0-9]+)([eE][+-]?[0-9]+)?</Rule>
66  </RuleSet>
67  <RuleSet name="ParamList" ignoreCase="false">
68    <Import ruleSet="C#/" />
69    <Rule foreground="#FF00008B" fontWeight="normal" fontStyle="normal">\b0[xX][0-9a-fA-F]+|(\b\d+(\.[0-9]+)?|\.[0-9]+)([eE][+-]?[0-9]+)?</Rule>
70  </RuleSet>
71  <RuleSet name="RuleDefinition" ignoreCase="false">
72    <Rule foreground="#FF00008B" fontWeight="normal" fontStyle="normal">\b0[xX][0-9a-fA-F]+|(\b\d+(\.[0-9]+)?|\.[0-9]+)([eE][+-]?[0-9]+)?</Rule>
73  </RuleSet>
74</SyntaxDefinition>
Note: See TracBrowser for help on using the repository browser.