|
213 | 213 | "{0:N2}" -f $a |
214 | 214 | # ^^^^^^^^ meta.string.interpolated.powershell string.quoted.double.powershell |
215 | 215 | # ^ punctuation.definition.string.begin.powershell |
| 216 | +# ^^^^^^ constant.other.placeholder.powershell |
| 217 | +# ^ punctuation.definition.placeholder.begin.powershell |
| 218 | +# ^ punctuation.separator.powershell |
| 219 | +# ^ punctuation.definition.placeholder.end.powershell |
216 | 220 | # ^ punctuation.definition.string.end.powershell |
217 | 221 | # ^^ keyword.operator.string-format.powershell |
218 | 222 | # ^ punctuation.definition.keyword.powershell |
|
222 | 226 | "{0:D8}" -f $a |
223 | 227 | # ^^^^^^^^ meta.string.interpolated.powershell string.quoted.double.powershell |
224 | 228 | # ^ punctuation.definition.string.begin.powershell |
| 229 | +# ^^^^^^ constant.other.placeholder.powershell |
| 230 | +# ^ punctuation.definition.placeholder.begin.powershell |
| 231 | +# ^ punctuation.separator.powershell |
| 232 | +# ^ punctuation.definition.placeholder.end.powershell |
225 | 233 | # ^ punctuation.definition.string.end.powershell |
226 | 234 | # ^^ keyword.operator.string-format.powershell |
227 | 235 | # ^ punctuation.definition.keyword.powershell |
|
231 | 239 | "{0:C2}" -f $a |
232 | 240 | # ^^^^^^^^ meta.string.interpolated.powershell string.quoted.double.powershell |
233 | 241 | # ^ punctuation.definition.string.begin.powershell |
| 242 | +# ^^^^^^ constant.other.placeholder.powershell |
| 243 | +# ^ punctuation.definition.placeholder.begin.powershell |
| 244 | +# ^ punctuation.separator.powershell |
| 245 | +# ^ punctuation.definition.placeholder.end.powershell |
234 | 246 | # ^ punctuation.definition.string.end.powershell |
235 | 247 | # ^^ keyword.operator.string-format.powershell |
236 | 248 | # ^ punctuation.definition.keyword.powershell |
|
240 | 252 | "{0:P0}" -f $a |
241 | 253 | # ^^^^^^^^ meta.string.interpolated.powershell string.quoted.double.powershell |
242 | 254 | # ^ punctuation.definition.string.begin.powershell |
| 255 | +# ^^^^^^ constant.other.placeholder.powershell |
| 256 | +# ^ punctuation.definition.placeholder.begin.powershell |
| 257 | +# ^ punctuation.separator.powershell |
| 258 | +# ^ punctuation.definition.placeholder.end.powershell |
243 | 259 | # ^ punctuation.definition.string.end.powershell |
244 | 260 | # ^^ keyword.operator.string-format.powershell |
245 | 261 | # ^ punctuation.definition.keyword.powershell |
|
249 | 265 | "{0:X0}" -f $a |
250 | 266 | # ^^^^^^^^ meta.string.interpolated.powershell string.quoted.double.powershell |
251 | 267 | # ^ punctuation.definition.string.begin.powershell |
| 268 | +# ^^^^^^ constant.other.placeholder.powershell |
| 269 | +# ^ punctuation.definition.placeholder.begin.powershell |
| 270 | +# ^ punctuation.separator.powershell |
| 271 | +# ^ punctuation.definition.placeholder.end.powershell |
252 | 272 | # ^ punctuation.definition.string.end.powershell |
253 | 273 | # ^^ keyword.operator.string-format.powershell |
254 | 274 | # ^ punctuation.definition.keyword.powershell |
|
274 | 294 | "{1,10} {0,10} {2,10:x}" -f "First", "Second", 255 |
275 | 295 | # ^^^^^^^^^^^^^^^^^^^^^^^^ meta.string.interpolated.powershell string.quoted.double.powershell |
276 | 296 | # ^ punctuation.definition.string.begin.powershell |
| 297 | +# ^^^^^^ constant.other.placeholder.powershell |
| 298 | +# ^ punctuation.definition.placeholder.begin.powershell |
| 299 | +# ^ punctuation.separator.powershell |
| 300 | +# ^ punctuation.definition.placeholder.end.powershell |
| 301 | +# ^^^^^^ constant.other.placeholder.powershell |
| 302 | +# ^ punctuation.definition.placeholder.begin.powershell |
| 303 | +# ^ punctuation.separator.powershell |
| 304 | +# ^ punctuation.definition.placeholder.end.powershell |
| 305 | +# ^^^^^^^^ constant.other.placeholder.powershell |
| 306 | +# ^ punctuation.definition.placeholder.begin.powershell |
| 307 | +# ^ punctuation.separator.powershell |
| 308 | +# ^ punctuation.separator.powershell |
| 309 | +# ^ punctuation.definition.placeholder.end.powershell |
277 | 310 | # ^ punctuation.definition.string.end.powershell |
278 | 311 | # ^^ keyword.operator.string-format.powershell |
279 | 312 | # ^ punctuation.definition.keyword.powershell |
|
292 | 325 | # ^ punctuation.section.group.begin.powershell |
293 | 326 | # ^^^^^^^ meta.string.interpolated.powershell string.quoted.double.powershell |
294 | 327 | # ^ punctuation.definition.string.begin.powershell |
| 328 | +# ^^^^^ constant.other.placeholder.powershell |
| 329 | +# ^ punctuation.definition.placeholder.begin.powershell |
| 330 | +# ^ punctuation.separator.powershell |
| 331 | +# ^ punctuation.definition.placeholder.end.powershell |
295 | 332 | # ^ punctuation.definition.string.end.powershell |
296 | 333 | # ^^ keyword.operator.string-format.powershell |
297 | 334 | # ^ punctuation.definition.keyword.powershell |
|
303 | 340 | # ^ punctuation.section.group.begin.powershell |
304 | 341 | # ^^^^^^^^^^^^^ meta.string.interpolated.powershell string.quoted.double.powershell |
305 | 342 | # ^ punctuation.definition.string.begin.powershell |
| 343 | +# ^^^^^^^^^^^ constant.other.placeholder.powershell |
| 344 | +# ^ punctuation.definition.placeholder.begin.powershell |
| 345 | +# ^ punctuation.separator.powershell |
| 346 | +# ^ punctuation.separator.powershell |
| 347 | +# ^ punctuation.definition.placeholder.end.powershell |
306 | 348 | # ^ punctuation.definition.string.end.powershell |
307 | 349 | # ^^ keyword.operator.string-format.powershell |
308 | 350 | # ^ punctuation.definition.keyword.powershell |
|
313 | 355 | "{0:R}" -f (1mb/2.0) |
314 | 356 | # ^^^^^^^ meta.string.interpolated.powershell string.quoted.double.powershell |
315 | 357 | # ^ punctuation.definition.string.begin.powershell |
| 358 | +# ^^^^^ constant.other.placeholder.powershell |
| 359 | +# ^ punctuation.definition.placeholder.begin.powershell |
| 360 | +# ^ punctuation.separator.powershell |
| 361 | +# ^ punctuation.definition.placeholder.end.powershell |
316 | 362 | # ^ punctuation.definition.string.end.powershell |
317 | 363 | # ^^ keyword.operator.string-format.powershell |
318 | 364 | # ^ punctuation.definition.keyword.powershell |
|
329 | 375 | "{0:00.0}" -f 4.12341234 |
330 | 376 | # ^^^^^^^^^^ meta.string.interpolated.powershell string.quoted.double.powershell |
331 | 377 | # ^ punctuation.definition.string.begin.powershell |
| 378 | +# ^^^^^^^^ constant.other.placeholder.powershell |
| 379 | +# ^ punctuation.definition.placeholder.begin.powershell |
| 380 | +# ^ punctuation.separator.powershell |
| 381 | +# ^ punctuation.definition.placeholder.end.powershell |
332 | 382 | # ^ punctuation.definition.string.end.powershell |
333 | 383 | # ^^ keyword.operator.string-format.powershell |
334 | 384 | # ^ punctuation.definition.keyword.powershell |
|
338 | 388 | "{0:##.#}" -f 4.12341234 |
339 | 389 | # ^^^^^^^^^^ meta.string.interpolated.powershell string.quoted.double.powershell |
340 | 390 | # ^ punctuation.definition.string.begin.powershell |
| 391 | +# ^^^^^^^^ constant.other.placeholder.powershell |
| 392 | +# ^ punctuation.definition.placeholder.begin.powershell |
| 393 | +# ^ punctuation.separator.powershell |
| 394 | +# ^ punctuation.definition.placeholder.end.powershell |
341 | 395 | # ^ punctuation.definition.string.end.powershell |
342 | 396 | # ^^ keyword.operator.string-format.powershell |
343 | 397 | # ^ punctuation.definition.keyword.powershell |
|
347 | 401 | "{0:#,#.#}" -f 1234.121234 |
348 | 402 | # ^^^^^^^^^^^ meta.string.interpolated.powershell string.quoted.double.powershell |
349 | 403 | # ^ punctuation.definition.string.begin.powershell |
| 404 | +# ^^^^^^^^^ constant.other.placeholder.powershell |
| 405 | +# ^ punctuation.definition.placeholder.begin.powershell |
| 406 | +# ^ punctuation.separator.powershell |
| 407 | +# ^ punctuation.separator.powershell |
| 408 | +# ^ punctuation.definition.placeholder.end.powershell |
350 | 409 | # ^ punctuation.definition.string.end.powershell |
351 | 410 | # ^^ keyword.operator.string-format.powershell |
352 | 411 | # ^ punctuation.definition.keyword.powershell |
|
356 | 415 | "{0:##,,.000}" -f 1048576 |
357 | 416 | # ^^^^^^^^^^^^^^ meta.string.interpolated.powershell string.quoted.double.powershell |
358 | 417 | # ^ punctuation.definition.string.begin.powershell |
| 418 | +# ^^^^^^^^^^^^ constant.other.placeholder.powershell |
| 419 | +# ^ punctuation.definition.placeholder.begin.powershell |
| 420 | +# ^ punctuation.separator.powershell |
| 421 | +# ^^ punctuation.separator.powershell |
| 422 | +# ^ punctuation.definition.placeholder.end.powershell |
359 | 423 | # ^ punctuation.definition.string.end.powershell |
360 | 424 | # ^^ keyword.operator.string-format.powershell |
361 | 425 | # ^ punctuation.definition.keyword.powershell |
|
364 | 428 | "{this is not a #comment}" |
365 | 429 | # ^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.string.interpolated.powershell string.quoted.double.powershell - comment |
366 | 430 | # ^ punctuation.definition.string.begin.powershell |
| 431 | +# ^^^^^^^^^^^^^^^^^^^^^^^^ constant.other.placeholder.powershell |
| 432 | +# ^ punctuation.definition.placeholder.begin.powershell |
| 433 | +# ^ punctuation.definition.placeholder.end.powershell |
367 | 434 | # ^ punctuation.definition.string.end.powershell |
368 | 435 |
|
369 | 436 | "{0:##.#E000}" -f 2.71828 |
370 | 437 | # ^^^^^^^^^^^^^^ meta.string.interpolated.powershell string.quoted.double.powershell |
371 | 438 | # ^ punctuation.definition.string.begin.powershell |
| 439 | +# ^^^^^^^^^^^^ constant.other.placeholder.powershell |
| 440 | +# ^ punctuation.definition.placeholder.begin.powershell |
| 441 | +# ^ punctuation.separator.powershell |
| 442 | +# ^ punctuation.definition.placeholder.end.powershell |
372 | 443 | # ^ punctuation.definition.string.end.powershell |
373 | 444 | # ^^ keyword.operator.string-format.powershell |
374 | 445 | # ^ punctuation.definition.keyword.powershell |
375 | 446 | # ^^^^^^^ meta.number.float.decimal.powershell constant.numeric.value.powershell |
376 | 447 | # ^ punctuation.separator.decimal.powershell |
377 | 448 |
|
| 449 | + # TODO: Let placeholders contain quotes |
378 | 450 | "{0:#.00'##'}" -f 2.71828 |
379 | 451 | # ^^^^^^^^^^^^^^ meta.string.interpolated.powershell string.quoted.double.powershell |
380 | 452 | # ^ punctuation.definition.string.begin.powershell |
| 453 | +# ^^^^^^^ constant.other.placeholder.powershell |
| 454 | +# ^ punctuation.definition.placeholder.begin.powershell |
| 455 | +# ^ punctuation.separator.powershell |
381 | 456 | # ^ punctuation.definition.string.end.powershell |
382 | 457 | # ^^ keyword.operator.string-format.powershell |
383 | 458 | # ^ punctuation.definition.keyword.powershell |
|
387 | 462 | "{0:POS;NEG;ZERO}" -f -14 |
388 | 463 | # ^^^^^^^^^^^^^^^^^^ meta.string.interpolated.powershell string.quoted.double.powershell |
389 | 464 | # ^ punctuation.definition.string.begin.powershell |
| 465 | +# ^^^^^^^^^^^^^^^^ constant.other.placeholder.powershell |
| 466 | +# ^ punctuation.definition.placeholder.begin.powershell |
| 467 | +# ^ punctuation.separator.powershell |
| 468 | +# ^ punctuation.separator.powershell |
| 469 | +# ^ punctuation.separator.powershell |
| 470 | +# ^ punctuation.definition.placeholder.end.powershell |
390 | 471 | # ^ punctuation.definition.string.end.powershell |
391 | 472 | # ^^ keyword.operator.string-format.powershell |
392 | 473 | # ^ punctuation.definition.keyword.powershell |
393 | 474 | # ^ keyword.operator.unary.powershell |
394 | 475 | # ^^ meta.number.integer.decimal.powershell constant.numeric.value.powershell |
395 | 476 |
|
396 | 477 | "{0:$## Please}" -f 14 |
397 | | -# ^^^^^^^^^^^^^^^^ meta.string.interpolated.powershell |
398 | | -# ^^^^ string.quoted.double.powershell |
| 478 | +# ^^^^^^^^^^^^^^^^ meta.string.interpolated.powershell string.quoted.double.powershell - comment |
399 | 479 | # ^ punctuation.definition.string.begin.powershell |
400 | | -# ^ meta.interpolation.powershell |
401 | | -# ^^^^^^^^^^^ string.quoted.double.powershell |
| 480 | +# ^^^^^^^^^^^^^^ constant.other.placeholder.powershell |
| 481 | +# ^ punctuation.definition.placeholder.begin.powershell |
| 482 | +# ^ punctuation.separator.powershell |
| 483 | +# ^ punctuation.definition.placeholder.end.powershell |
402 | 484 | # ^ punctuation.definition.string.end.powershell |
403 | 485 | # ^^ keyword.operator.string-format.powershell |
404 | 486 | # ^ punctuation.definition.keyword.powershell |
|
407 | 489 | "{0,-8:P1}" -f 1.75 |
408 | 490 | # ^^^^^^^^^^^ meta.string.interpolated.powershell string.quoted.double.powershell |
409 | 491 | # ^ punctuation.definition.string.begin.powershell |
| 492 | +# ^^^^^^^^^ constant.other.placeholder.powershell |
| 493 | +# ^ punctuation.definition.placeholder.begin.powershell |
| 494 | +# ^ punctuation.separator.powershell |
| 495 | +# ^ punctuation.separator.powershell |
| 496 | +# ^ punctuation.definition.placeholder.end.powershell |
410 | 497 | # ^ punctuation.definition.string.end.powershell |
411 | 498 | # ^^ keyword.operator.string-format.powershell |
412 | 499 | # ^ punctuation.definition.keyword.powershell |
|
416 | 503 | "{0,10:N3}{1,10:N3}{2,10:N3}{3,10:N3}" -f 0.2, 0.3, 0.45, 0.91 |
417 | 504 | # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.string.interpolated.powershell string.quoted.double.powershell |
418 | 505 | # ^ punctuation.definition.string.begin.powershell |
| 506 | +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constant.other.placeholder.powershell |
| 507 | +# ^ punctuation.definition.placeholder.begin.powershell |
| 508 | +# ^ punctuation.separator.powershell |
| 509 | +# ^ punctuation.separator.powershell |
| 510 | +# ^ punctuation.definition.placeholder.end.powershell |
| 511 | +# ^ punctuation.definition.placeholder.begin.powershell |
| 512 | +# ^ punctuation.separator.powershell |
| 513 | +# ^ punctuation.separator.powershell |
| 514 | +# ^ punctuation.definition.placeholder.end.powershell |
| 515 | +# ^ punctuation.definition.placeholder.begin.powershell |
| 516 | +# ^ punctuation.separator.powershell |
| 517 | +# ^ punctuation.separator.powershell |
| 518 | +# ^ punctuation.definition.placeholder.end.powershell |
| 519 | +# ^ punctuation.definition.placeholder.begin.powershell |
| 520 | +# ^ punctuation.separator.powershell |
| 521 | +# ^ punctuation.separator.powershell |
| 522 | +# ^ punctuation.definition.placeholder.end.powershell |
419 | 523 | # ^ punctuation.definition.string.end.powershell |
420 | 524 | # ^^ keyword.operator.string-format.powershell |
421 | 525 | # ^ punctuation.definition.keyword.powershell |
|
435 | 539 | '{0:00000.000}' -f 7.125 |
436 | 540 | # ^^^^^^^^^^^^^^^ meta.string.powershell string.quoted.single.powershell |
437 | 541 | # ^ punctuation.definition.string.begin.powershell |
| 542 | +# ^^^^^^^^^^^^^ constant.other.placeholder.powershell |
| 543 | +# ^ punctuation.definition.placeholder.begin.powershell |
| 544 | +# ^ punctuation.separator.powershell |
| 545 | +# ^ punctuation.definition.placeholder.end.powershell |
438 | 546 | # ^ punctuation.definition.string.end.powershell |
439 | 547 | # ^^ keyword.operator.string-format.powershell |
440 | 548 | # ^ punctuation.definition.keyword.powershell |
|
0 commit comments