|
150 | 150 | "patterns": [{ "include": "#expression" }]
|
151 | 151 | },
|
152 | 152 | "type-unsigned": {
|
153 |
| - "match": "\\s*\\bu(8|16|32|64|128)\\b", |
154 |
| - "name": "storage.type.unsigned.hexpat" |
| 153 | + "match": "\\s*\\b(u(?:8|16|32|64|128))\\b(?:\\s*([_a-zA-Z]+[_a-zA-Z0-9]*),?)*", |
| 154 | + "captures": { |
| 155 | + "1": { "name": "storage.type.unsigned.hexpat" }, |
| 156 | + "0": { "name": "variable.hexpat" } |
| 157 | + } |
155 | 158 | },
|
156 | 159 | "type-signed": {
|
157 |
| - "name": "storage.type.signed.hexpat", |
158 |
| - "match": "\\s*\\bs(8|16|32|64|128)\\b" |
| 160 | + "match": "\\s*\\b(s(?:8|16|32|64|128))\\b(?:\\s*([_a-zA-Z]+[_a-zA-Z0-9]*),?)*", |
| 161 | + "captures": { |
| 162 | + "1": { "name": "storage.type.signed.hexpat" }, |
| 163 | + "0": { "name": "variable.hexpat" } |
| 164 | + } |
159 | 165 | },
|
160 | 166 | "type-float": {
|
161 |
| - "name": "storage.type.float.hexpat", |
162 |
| - "match": "\\s*\\b(float|double)\\b" |
| 167 | + "match": "\\s*\\b(float|double)\\b(?:\\s*([_a-zA-Z]+[_a-zA-Z0-9]*),?)*", |
| 168 | + "captures": { |
| 169 | + "1": { "name": "storage.type.float.hexpat" }, |
| 170 | + "0": { "name": "variable.hexpat" } |
| 171 | + } |
163 | 172 | },
|
164 | 173 | "type-special": {
|
165 |
| - "name": "storage.type.special.hexpat", |
166 |
| - "match": "\\s*\\b(char|char16|bool|padding|str|auto)\\b" |
| 174 | + "match": "\\s*\\b(char|char16|bool|padding|str|auto)\\b(?:\\s*([_a-zA-Z]+[_a-zA-Z0-9]*),?)*", |
| 175 | + "captures": { |
| 176 | + "1": { "name": "storage.type.special.hexpat" }, |
| 177 | + "0": { "name": "variable.hexpat" } |
| 178 | + } |
167 | 179 | },
|
168 | 180 | "endianness": {
|
169 | 181 | "name": "storage.modifier.endianness.hexpat",
|
|
0 commit comments