-
Notifications
You must be signed in to change notification settings - Fork 0
/
motoko.json
120 lines (120 loc) · 2.81 KB
/
motoko.json
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
113
114
115
116
117
118
119
120
{
"name": "Motoko",
"scopeName": "source.motoko",
"fileTypes": ["motoko"],
"patterns": [
{
"include": "#comments"
},
{
"include": "#keywords"
},
{
"include": "#types"
},
{
"include": "#operators"
},
{
"include": "#strings"
},
{
"include": "#numbers"
}
],
"repository": {
"comments": {
"patterns": [
{
"name": "comment.line.double-slash.motoko",
"match": "//.*$",
"captures": {
"0": {
"name": "punctuation.definition.comment.motoko"
}
}
},
{
"name": "comment.block.motoko",
"begin": "/\\*",
"end": "\\*/",
"captures": {
"0": {
"name": "punctuation.definition.comment.motoko"
}
}
}
]
},
"keywords": {
"patterns": [
{
"name": "keyword.control.motoko",
"match": "\\b(actor|class|func|import|let|loop|private|public|return|var|while|if|else|async|await|switch|case|break|try|catch|finally|throw|assert|for|in|continue|module|type|shared|stable|query)\\b"
}
]
},
"types": {
"patterns": [
{
"name": "storage.type.motoko",
"match": "\\b(Bool|Char|Int|Int8|Int16|Int32|Int64|Nat|Nat8|Nat16|Nat32|Nat64|Float|Float32|Float64|Text|Blob|Principal|Array|List|Option|Result)\\b"
}
]
},
"operators": {
"patterns": [
{
"name": "keyword.operator.motoko",
"match": "(!|\\$|%|&|\\*|\\-\\-|\\-|\\+=|\\+\\+|\\+|==|!=|<=|>=|<|>|&&|\\|\\||::|;|,|\\?|\\.|\\(|\\)|\\{|\\}|\\[|\\]|`|~)"
}
]
},
"strings": {
"patterns": [
{
"name": "string.quoted.double.motoko",
"begin": "\"",
"end": "\"",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.motoko"
}
},
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.motoko"
}
},
"patterns": [
{
"name": "constant.character.escape.motoko",
"match": "\\\\."
}
]
}
]
},
"numbers": {
"patterns": [
{
"name": "constant.numeric.integer.motoko",
"match": "\\b([0-9]+)\\b"
},
{
"name": "constant.numeric.float.motoko",
"match": "\\b([0-9]+\\.[0-9]+(?:[eE][\\+\\-]?[0-9]+)?)\\b"
},
{
"name": "constant.numeric.hexadecimal.motoko",
"match": "\\b0x[0-9a-fA-F]+\\b"
},
{
"name": "constant.numeric.binary.motoko",
"match": "\\b0b[01]+\\b"
}
]
}
},
"uuid": "5b5f5a5a-3d3d-4d4d-9d9d-8a8a8a8a8a8a"
}