-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathSmalltalk.JSON-tmLanguage
112 lines (112 loc) · 2.45 KB
/
Smalltalk.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
106
107
108
109
110
111
112
{
"name": "Smalltalk",
"scopeName": "source.smalltalk",
"fileTypes": ["st"],
"patterns": [
{
"begin": "([a-zA-Z][a-zA-Z0-9]*)\\s*(subclass:)\\s*([a-zA-Z][a-zA-Z0-9]*)\\s*\\[",
"end": "\\]",
"patterns": [
{ "include": "#pragma" },
{
"match": "(([a-zA-Z][a-zA-Z0-9]*:)|[+\\-\\/\\\\*~<>=@%|&?!.,:;^]+)\\s*([a-zA-Z][a-zA-Z0-9]*)",
"captures": {
"1": { "name": "entity.name.function" },
"3": { "name": "variable.other" }
}
},
{
"match": "([a-zA-Z][a-zA-Z0-9]*)",
"name": "entity.name.function"
},
{ "include": "#block" },
{ "include": "#comment" }
],
"beginCaptures": {
"1": { "name": "entity.other.inherited-class" },
"2": { "name": "keyword.other" },
"3": { "name": "entity.name.type" }
}
},
{ "include": "#block-body" }
],
"repository": {
"comment": {
"begin": "\"",
"end": "\"",
"name": "comment.block"
},
"string": {
"begin": "'",
"end": "'",
"name": "string.quoted.double"
},
"symbol": {
"match": "#(([a-zA-Z][a-zA-Z0-9:]*)|[+\\-\\/\\\\*~<>=@%|&?!.,:;^]+)",
"name": "constant.language"
},
"symbol2": {
"begin": "#'",
"end": "'",
"name": "constant.language"
},
"character": {
"match": "\\$(<[0-F]+>|.)",
"name": "constants.character"
},
"number": {
"match": "(([0-9]{1,2}r)?[0-9A-F]+)",
"name": "constant.numeric"
},
"special-variable": {
"match": "true|false|nil|thisContext",
"name": "constant.language"
},
"variable": {
"match": "([a-zA-Z][a-zA-Z0-9]*)",
"name": "variable.other"
},
"selector": {
"match": "([a-zA-Z][a-zA-Z0-9]*:)|[+\\-\\/\\\\*~<>=@%|&?!.,:;^]+",
"name": "keyword.other"
},
"literal": {
"patterns": [
{ "include": "#character" },
{ "include": "#special-variable" },
{ "include": "#variable" },
{ "include": "#number" },
{ "include": "#symbol" },
{ "include": "#symbol2" },
{ "include": "#string" }
]
},
"block": {
"begin": "\\[",
"end": "\\]",
"patterns": [
{ "include": "#block-body" }
]
},
"block-body": {
"patterns": [
{ "include": "#pragma" },
{ "include": "#selector"},
{ "include": "#literal" },
{ "include": "#block"},
{ "include": "#comment" }
]
},
"pragma": {
"begin": "<([a-zA-Z][a-zA-Z0-9]*:)",
"end": ">",
"patterns": [
{ "include": "#literal" }
],
"captures": {
"1": { "name": "keyword.other" }
}
}
},
"uuid": "e42217b0-9451-4406-8697-4ab7a7b42aa9"
}