-
Notifications
You must be signed in to change notification settings - Fork 79
/
ScriptSyntax.txt
71 lines (69 loc) · 3.38 KB
/
ScriptSyntax.txt
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
<?xml version="1.0" encoding="utf-8" ?>
<Language Name="Script" Startblock="Code">
<FileTypes>
<FileType Extension=".txt" Name="Script File"/></FileTypes>
<Block Name="Code" Style="Code" IsMultiline="true">
<Scope Start="{" End="}" Style="Scope" Text="{...}" CauseIndent="true" />
<Bracket Start="(" End=")" Style="Code" />
<Bracket Start="[" End="]" Style="Code" />
<!-- Keywords that can exist inside this block -->
<Keywords>
<PatternGroup Name="C1" Style="C1" CaseSensitive="true">
<Patterns>
array bool break case char continue default double else False for function global if in is long new null object return string switch True while using
</Patterns>
</PatternGroup>
<PatternGroup Name="C4" Style="C4" CaseSensitive="true">
<Patterns>
+ - * / % ! | & // < = > [ ] ' " .
</Patterns>
</PatternGroup>
<PatternGroup Name="C5" Style="C5" CaseSensitive="true">
<Patterns>
( ) , ; { }
</Patterns>
</PatternGroup>
<PatternGroup Name="Numbers" Style="Number">
<Pattern Text="(0x[0-9a-fA-F]+)" IsComplex="true" />
<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="Comment" />
<Child Name="String" />
<Child Name="Code" />
</ChildBlocks>
</Block>
<Block Name="Comment" Style="Comment" IsMultiline="false">
<Scope Start="//" End="" Style="Comment" />
</Block>
<Block Name="String" Style="String" IsMultiline="true">
<Scope Start=""" End=""" EscapeChar="\" Style="String" />
<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="Keyword" ForeColor="Blue" BackColor="" Bold="true" Italic="false" Underline="false" />
<Style Name="Operator" ForeColor="Red" BackColor="" Bold="false" Italic="false" Underline="false" />
<!-- ULTRAEDIT WORD GROUPS -->
<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="Gold" BackColor="" Bold="false" Italic="false" Underline="false" />
<Style Name="C7" ForeColor="Green" BackColor="" Bold="false" Italic="false" Underline="false" />
<Style Name="C8" ForeColor="Silver" BackColor="" Bold="false" Italic="false" Underline="false" />
</Language>