|
1 | 1 | // SYNTAX TEST "Packages/Tact/package/Tact.tmLanguage" |
| 2 | +// fmt-ignore |
2 | 3 |
|
3 | 4 | struct Basic { |
4 | 5 | prop: Int; |
@@ -58,6 +59,73 @@ extends fun c(self: Int, ) { |
58 | 59 | // ^ punctuation.brackets.round.tact |
59 | 60 | // ^ punctuation.semi.tact |
60 | 61 |
|
| 62 | + // map |
| 63 | + map<> {}; |
| 64 | + // <- entity.name.type.tact |
| 65 | + // ^^ punctuation.brackets.angle.tact |
| 66 | + // ^^ punctuation.brackets.curly.tact |
| 67 | + // ^ punctuation.semi.tact |
| 68 | + map<Int, Int,> {}; |
| 69 | + // ^^^ entity.name.type.tact |
| 70 | + // ^ punctuation.comma.tact |
| 71 | + // ^^^ entity.name.type.tact |
| 72 | + // ^ punctuation.comma.tact |
| 73 | + // ^ punctuation.brackets.angle.tact |
| 74 | + map<Address, Int as uint8> { |
| 75 | + // ^^^ entity.name.type.tact |
| 76 | + // ^^ keyword.other.as.tact storage.modifier.tact |
| 77 | + // ^^^^^ entity.name.type.tact |
| 78 | + // ^ punctuation.brackets.angle.tact |
| 79 | + address("yo"): 15, |
| 80 | + // <- entity.name.function.tact |
| 81 | + // ^ punctuation.brackets.round.tact |
| 82 | + // ^ string.quoted.double.tact punctuation.definition.string.begin.tact |
| 83 | + // ^^ string.quoted.double.tact |
| 84 | + // ^ string.quoted.double.tact punctuation.definition.string.end.tact |
| 85 | + // ^ punctuation.brackets.round.tact |
| 86 | + // ^ punctuation.colon.tact |
| 87 | + // ^^ constant.numeric.decimal.tact |
| 88 | + // ^ punctuation.comma.tact |
| 89 | + address("yo2"): 16, |
| 90 | + // <- entity.name.function.tact |
| 91 | + // ^^^^^ string.quoted.double.tact |
| 92 | + }; |
| 93 | + // ^ punctuation.brackets.curly.tact |
| 94 | + // ^ punctuation.semi.tact |
| 95 | + |
| 96 | + // set |
| 97 | + set<> {}; |
| 98 | + // <- entity.name.type.tact |
| 99 | + // ^^ punctuation.brackets.angle.tact |
| 100 | + // ^^ punctuation.brackets.curly.tact |
| 101 | + // ^ punctuation.semi.tact |
| 102 | + set<Int,> { |
| 103 | + // ^ punctuation.brackets.angle.tact |
| 104 | + // ^^^ entity.name.type.tact |
| 105 | + // ^ punctuation.comma.tact |
| 106 | + // ^ punctuation.brackets.angle.tact |
| 107 | + // ^ punctuation.brackets.curly.tact |
| 108 | + 10, |
| 109 | + // <- constant.numeric.decimal.tact |
| 110 | + //^ punctuation.comma.tact |
| 111 | + 20, |
| 112 | + // <- constant.numeric.decimal.tact |
| 113 | + //^ punctuation.comma.tact |
| 114 | + 100, |
| 115 | + // <- constant.numeric.decimal.tact |
| 116 | + // ^ punctuation.comma.tact |
| 117 | + ascii("tact"), |
| 118 | + // <- entity.name.function.tact |
| 119 | + // ^ punctuation.brackets.round.tact |
| 120 | + // ^ string.quoted.double.tact punctuation.definition.string.begin.tact |
| 121 | + // ^^^^ string.quoted.double.tact |
| 122 | + // ^ string.quoted.double.tact punctuation.definition.string.end.tact |
| 123 | + // ^ punctuation.brackets.round.tact |
| 124 | + // ^ punctuation.comma.tact |
| 125 | + }; |
| 126 | + // ^ punctuation.brackets.curly.tact |
| 127 | + // ^ punctuation.semi.tact |
| 128 | + |
61 | 129 | // parens_expression |
62 | 130 | ( 10 ); |
63 | 131 | // <- punctuation.brackets.round.tact |
|
0 commit comments