-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsyntax_test_primitive.tact
35 lines (30 loc) · 1.31 KB
/
syntax_test_primitive.tact
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
// SYNTAX TEST "Packages/Tact/package/Tact.tmLanguage"
primitive map<Int as int32, Address as remaining>;
// <- keyword.other.tact
// ^^^ entity.name.type.tact
// ^ punctuation.brackets.angle.tact
// ^^^ entity.name.type.tact
// ^^ keyword.other.as.tact storage.modifier.tact
// ^^^^^ entity.name.type.tact
// ^ punctuation.comma.tact
// ^^^^^^^ entity.name.type.tact
// ^^ keyword.other.as.tact storage.modifier.tact
// ^^^^^^^^^ entity.name.type.tact
// ^ punctuation.brackets.angle.tact
// ^ punctuation.semi.tact
primitive bounced<Message>;
// <- keyword.other.tact
// ^^^^^^^ entity.name.type.tact
// ^ punctuation.brackets.angle.tact
// ^^^^^^^ entity.name.type.tact
// ^ punctuation.brackets.angle.tact
// ^ punctuation.semi.tact
primitive Int?;
// <- keyword.other.tact
// ^^^ entity.name.type.tact
// ^ keyword.operator.optional.tact
// ^ punctuation.semi.tact
__gen
// <- invalid.illegal.identifier.tact
__tact
// <- invalid.illegal.identifier.tact