-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathnpath.syn
More file actions
92 lines (80 loc) · 4.28 KB
/
Copy pathnpath.syn
File metadata and controls
92 lines (80 loc) · 4.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?xml version="1.0" encoding="utf-8" ?>
<Language Name="NPath" Startblock="Code">
<FileTypes>
<FileType Extension=".npath" Name="NPath file"/></FileTypes>
<Block Name="Code" Style="Code" IsMultiline="true">
<Scope Start="((?i)(case)(?!(\s)+(tran)))" End="((?i)end)" StartIsComplex="true" EndIsComplex="true" Style="C1" Text="begin...end" StartISKeyword="true" EndIsKeyword="true" />
<Scope Start="((?i)(begin)(?!(\s)+(tran)))" End="((?i)end)" StartIsComplex="true" EndIsComplex="true" Style="C1" Text="begin...end" StartISKeyword="true" EndIsKeyword="true" />
<Scope Start="[" End="]" Style="C1" Text="[...]" />
<!-- Keywords that can exist inside this block -->
<Keywords>
<PatternGroup Name="C1" Style="C1" CaseSensitive="false" NormalizeCase="true">
<Patterns>
select from where
</Patterns>
<Pattern Text="order by" />
<Pattern Text="go" IsSeparator="true"/>
</PatternGroup>
<PatternGroup Name="alfakrull" Style="Code" CaseSensitive="false" NormalizeCase="false">
<Patterns>
@count @max @avg @min @like @and @or @not @select @from @where @between @in @contains @freetext
</Patterns>
</PatternGroup>
<PatternGroup Name="C2" Style="C2" CaseSensitive="false" NormalizeCase="true">
<Patterns>
count max avg min like between in contains freetext
</Patterns>
</PatternGroup>
<PatternGroup Name="C3" Style="C3" CaseSensitive="false" NormalizeCase="true">
<Patterns>
and or not
</Patterns>
</PatternGroup>
<PatternGroup Name="Numbers" Style="Number">
<Pattern Text="([0-9]+)" IsComplex="true" />
</PatternGroup>
</Keywords>
<!-- Operators that can exist inside this block -->
<Operators>
<PatternGroup name="Operators" Style="Operator">
<Patterns>
% " & * ( ) - + | \ / [ ] ; " ' < > , .
</Patterns>
</PatternGroup>
</Operators>
<!-- Blocks that can exist inside this block -->
<ChildBlocks>
<Child Name="String" />
<Child Name="Date" />
<Child Name="Guid" />
<Child Name="Code" />
</ChildBlocks>
</Block>
<Block Name="String" Style="String" IsMultiline="true">
<Scope Start=""" End=""" EscapeChar="" Style="String" />
<Scope Start="'" End="'" EscapeChar="" Style="String" />
</Block>"
<Block Name="Guid" Style="String" IsMultiline="true">
<Scope Start="{" End="}" EscapeChar="" Style="String" />
</Block>"
<Block Name="Date" Style="String" IsMultiline="true">
<Scope Start="#" End="#" EscapeChar="" Style="String" />
</Block>"
<Style Name="Code" ForeColor="" BackColor="" Bold="false" Italic="false" Underline="false" />
<Style Name="Scope" ForeColor="" BackColor="" Bold="false" Italic="false" Underline="false" />
<Style Name="Comment" ForeColor="Green" BackColor="" Bold="false" Italic="false" Underline="false" />
<Style Name="String" ForeColor="SteelBlue" BackColor="" Bold="false" Italic="false" Underline="false" />
<Style Name="Number" ForeColor="Teal" BackColor="" Bold="true" Italic="false" Underline="false" />
<Style Name="ServerVariable" ForeColor="DarkMagenta" BackColor="" Bold="true" Italic="false" Underline="false" />
<Style Name="Variable" ForeColor="Magenta" BackColor="" Bold="true" Italic="false" Underline="false" />
<Style Name="Keyword" ForeColor="Blue" BackColor="" Bold="true" Italic="false" Underline="false" />
<Style Name="Operator" ForeColor="Red" BackColor="" Bold="false" Italic="false" Underline="false" />
<Style Name="C1" ForeColor="Blue" BackColor="" Bold="true" Italic="false" Underline="false" />
<Style Name="C2" ForeColor="DarkBlue" BackColor="" Bold="true" Italic="false" Underline="false" />
<Style Name="C3" ForeColor="Magenta" BackColor="" Bold="false" Italic="false" Underline="false" />
<Style Name="C4" ForeColor="Red" BackColor="" Bold="false" Italic="false" Underline="false" />
<Style Name="C5" ForeColor="DarkRed" BackColor="" Bold="false" Italic="false" Underline="false" />
<Style Name="C6" ForeColor="DarkBlue" BackColor="" Bold="false" Italic="false" Underline="false" />
<Style Name="C7" ForeColor="DarkGreen" BackColor="" Bold="true" Italic="false" Underline="false" />
<Style Name="C8" ForeColor="Silver" BackColor="" Bold="false" Italic="false" Underline="false" />
</Language>