-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcscript.JSON-tmLanguage
105 lines (97 loc) · 3.92 KB
/
cscript.JSON-tmLanguage
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
93
94
95
96
97
98
99
100
101
102
103
104
105
{
"name": "C script",
"scopeName": "source.cscript",
"fileTypes": ["unit"],
"repository": {
"general": {
"patterns": [
{
"include": "#file_block"
}
]
},
"file_block": {
"name": "meta.init-file.cscript",
"begin": "<(unit)\\s+(name)\\s*=\\s*(\"[A-Za-z]+[a-zA-Z0-9_]*\")\\s+(xmlns:xsi)=(\"_\")\\s+(xsi:type)=\\s?(\"Unit\")>",
"beginCaptures": {
"1": { "name": "entity.name.tag.cscript" },
"2": { "name": "entity.other.attribute-name.cscript" },
"3": { "name": "string.cscript" },
"4": { "name": "entity.other.attribute-name.namespace.cscript"},
"5": { "name": "string.cscript" },
"6": { "name": "entity.other.attribute-name.namespace.cscript"},
"7": { "name": "string.cscript" }
},
"patterns": [
{
"include": "#class"
},
{
"name": "meta.exception-definition.cscript",
"match": "<(class)\\s+(name)\\s*=\\s*(\"E[A-Za-z]+[a-zA-Z0-9_]*\")\\s\\s*(inherits)\\s*=\\s*\"(Exception)\"\\s*(\/>)",
"captures": {
"1": { "name": "entity.name.tag.cscript" },
"2": { "name": "entity.other.attribute-name.cscript" },
"4": { "name": "entity.other.attribute-name.namespace.cscript"},
"5": { "name": "storage.type.cscript" }
}
}
],
"end": "<\/(unit)>",
"endCaptures": {
"1": { "name": "entity.name.tag.cscript" }
}
},
"class": {
"name": "meta.class-definition.cscript",
"begin": "<(class)\\s+(name)\\s*=\\s*(\"[A-Za-z]+[a-zA-Z0-9_]*\")\\s*(\\s\\s*(inherits)\\s*=\\s?(\"[A-Za-z]+(\\.[a-zA-Z0-9]+)*\")\\s*)?>",
"beginCaptures": {
"1": { "name": "entity.name.tag.cscript" },
"2": { "name": "entity.other.attribute-name.cscript" },
"5": { "name": "entity.other.attribute-name.namespace.cscript"},
"6": { "name": "storage.type.cscript" }
},
"patterns": [
{
"include": "#method"
},
{
"name": "class.explicit-interface-implementation.cscript",
"match": "<(class)\\s+(name)\\s*=\\s*(\"E[A-Za-z]+[a-zA-Z0-9_]*\")\\s\\s*(inherits)\\s*=\\s*\"(Exception)\"\\s*(\/>)",
"captures": {
"1": { "name": "entity.name.tag.cscript" },
"2": { "name": "entity.other.attribute-name.cscript" },
"4": { "name": "entity.other.attribute-name.namespace.cscript"},
"5": { "name": "storage.type.cscript" }
}
}
],
"end": "<\/(class)>",
"endCaptures": {
"1": { "name": "entity.name.tag.cscript" }
}
},
"method": {
"name": "meta.method-definition.cscript",
"begin": "<(method)\\s+(?<kind definition>(kind)\\s*=\\s*\"\\s*(list|lookup|update|insert|delete|dml)\")?\\s*(sign)\\s*=\"\\s*(?<return type>[a-zA-Z]{1}(\\.?_*[a-zA-Z0-9]+)*(\\[\\])?\\^?){1}\\s*(?<fuction name>[a-zA-Z]{1}_*[_a-zA-Z0-9]*){1}\\s*\\(\\s*(?<params>(?<first param type>[a-zA-Z]{1}(\\.?_*[a-zA-Z0-9]+)*(\\[\\])?\\^?){1}\\s+(?<first param name>[a-zA-Z]{1}[_a-zA-Z0-9]*){1}(\\s*,\\s*(?<param type>([a-zA-Z]{1}(\\.?_*[a-zA-Z0-9]+)*(\\[\\])?\\^?))\\s+(?<param name>[a-zA-Z]{1}[_a-zA-Z0-9]*))*\\s*)?\\)\\s*\"\\s*(?<mods definition>mods\\s*=\\s*\"\\s*(virtual|spawn|queue)\")?\\s*\\/?>",
"beginCaptures": {
"1": { "name": "entity.name.tag.cscript" },
"3": { "name": "entity.other.attribute-name.cscript" },
"4": { "name": "storage.type.cscript" },
"5": { "name": "entity.other.attribute-name.cscript" },
"6": { "name": "storage.type.cscript" },
"11": { "name": "storage.type.cscript" }
},
"end": "<\/(method)>",
"endCaptures": {
"1": { "name": "entity.name.tag.cscript" }
}
}
},
"patterns": [
{
"include": "#general"
}
],
"uuid": "59de9fb4-446d-4b83-9d32-7312f12186dc"
}