TypeScript-TmLanguage/tests/baselines/Issue110.txt

84 строки
2.6 KiB
Plaintext

original file
-----------------------------------
let number1 = ^^0x100
let number2 = ^^14e15
let number3 = ^^10.42e41.5
let number4 = ^^4
let number5 = ^^51.4
let number6 = ^^12.4E10.2
let number7 = ^^14.6e+10
let number8 = ^^12E4
let number9 = ^^10e10
let number10 = ^^14e14.5
let number11 = ^^12E-10
let number12 = ^^13.4e-14.2
let number13 = ^^14.12
let number14 = ^^10.2E+4
let number6 = ^^5.00567789e+2
let i = ^^1, j = ^^1e3
/*
^^
Testing comments
*/
-----------------------------------
Grammar: TypeScript.tmLanguage
-----------------------------------
>let number1 = 0x100
^^^^^
[1, 15]: source.ts meta.var.expr.ts constant.numeric.hex.ts
>let number2 = 14e15
^^^^^
[2, 15]: source.ts meta.var.expr.ts constant.numeric.decimal.ts
>let number3 = 10.42e41.5
^^
[3, 15]: source.ts meta.var.expr.ts constant.numeric.decimal.ts
>let number4 = 4
^
[4, 15]: source.ts meta.var.expr.ts constant.numeric.decimal.ts
>let number5 = 51.4
^^
[5, 15]: source.ts meta.var.expr.ts constant.numeric.decimal.ts
>let number6 = 12.4E10.2
^^
[6, 15]: source.ts meta.var.expr.ts constant.numeric.decimal.ts
>let number7 = 14.6e+10
^^
[7, 15]: source.ts meta.var.expr.ts constant.numeric.decimal.ts
>let number8 = 12E4
^^^^
[8, 15]: source.ts meta.var.expr.ts constant.numeric.decimal.ts
>let number9 = 10e10
^^^^^
[9, 15]: source.ts meta.var.expr.ts constant.numeric.decimal.ts
>let number10 = 14e14.5
^^^^^
[10, 16]: source.ts meta.var.expr.ts constant.numeric.decimal.ts
>let number11 = 12E-10
^^^^^^
[11, 16]: source.ts meta.var.expr.ts constant.numeric.decimal.ts
>let number12 = 13.4e-14.2
^^
[12, 16]: source.ts meta.var.expr.ts constant.numeric.decimal.ts
>let number13 = 14.12
^^
[13, 16]: source.ts meta.var.expr.ts constant.numeric.decimal.ts
>let number14 = 10.2E+4
^^
[14, 16]: source.ts meta.var.expr.ts constant.numeric.decimal.ts
>let number6 = 5.00567789e+2
^
[15, 15]: source.ts meta.var.expr.ts constant.numeric.decimal.ts
>let i = 1, j = 1e3
^
[16, 9]: source.ts meta.var.expr.ts constant.numeric.decimal.ts
^^^
[16, 16]: source.ts meta.var.expr.ts constant.numeric.decimal.ts
>
>/*
>
^
[19, 1]: source.ts comment.block.ts
> Testing comments
>*/