2016-09-13 20:51:04 +03:00
|
|
|
original file
|
|
|
|
-----------------------------------
|
|
|
|
let a = 0, b = 0, c = 0;
|
|
|
|
let value = a / b
|
|
|
|
/ c;
|
|
|
|
let value2 = a / b
|
|
|
|
/ c * a + b / a / b / c;
|
|
|
|
let value2 = a / b / c * a + b / a / b / c;
|
|
|
|
-----------------------------------
|
|
|
|
|
2016-09-21 21:08:12 +03:00
|
|
|
Grammar: TypeScript.tmLanguage
|
|
|
|
-----------------------------------
|
2016-09-13 20:51:04 +03:00
|
|
|
>let a = 0, b = 0, c = 0;
|
|
|
|
^^^
|
|
|
|
source.ts meta.var.expr.ts storage.type.ts
|
|
|
|
^
|
|
|
|
source.ts meta.var.expr.ts
|
|
|
|
^
|
|
|
|
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts variable.other.readwrite.ts
|
|
|
|
^
|
|
|
|
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts keyword.operator.assignment.ts
|
2016-09-13 20:51:04 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts
|
2016-09-13 20:51:04 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts constant.numeric.decimal.ts
|
2016-09-16 02:03:59 +03:00
|
|
|
^
|
|
|
|
source.ts meta.var.expr.ts punctuation.separator.comma.ts
|
|
|
|
^
|
|
|
|
source.ts meta.var.expr.ts
|
2016-09-13 20:51:04 +03:00
|
|
|
^
|
|
|
|
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts variable.other.readwrite.ts
|
|
|
|
^
|
|
|
|
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts keyword.operator.assignment.ts
|
2016-09-13 20:51:04 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts
|
2016-09-13 20:51:04 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts constant.numeric.decimal.ts
|
2016-09-16 02:03:59 +03:00
|
|
|
^
|
|
|
|
source.ts meta.var.expr.ts punctuation.separator.comma.ts
|
|
|
|
^
|
|
|
|
source.ts meta.var.expr.ts
|
2016-09-13 20:51:04 +03:00
|
|
|
^
|
|
|
|
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts variable.other.readwrite.ts
|
|
|
|
^
|
|
|
|
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts keyword.operator.assignment.ts
|
2016-09-13 20:51:04 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts
|
2016-09-13 20:51:04 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts constant.numeric.decimal.ts
|
2016-09-16 02:16:35 +03:00
|
|
|
^
|
|
|
|
source.ts punctuation.terminator.statement.ts
|
|
|
|
^^
|
|
|
|
source.ts
|
2016-09-13 20:51:04 +03:00
|
|
|
>let value = a / b
|
|
|
|
^^^
|
|
|
|
source.ts meta.var.expr.ts storage.type.ts
|
|
|
|
^
|
|
|
|
source.ts meta.var.expr.ts
|
|
|
|
^^^^^
|
|
|
|
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts variable.other.readwrite.ts
|
|
|
|
^
|
|
|
|
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts keyword.operator.assignment.ts
|
2016-09-23 20:29:25 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts
|
2016-09-23 20:29:25 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts variable.other.readwrite.ts
|
2016-09-23 20:29:25 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts
|
2016-09-13 20:51:04 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts keyword.operator.arithmetic.ts
|
2016-09-23 20:29:25 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts
|
2016-09-23 20:29:25 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts variable.other.readwrite.ts
|
2016-09-23 20:29:25 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts
|
2016-09-13 20:51:04 +03:00
|
|
|
> / c;
|
|
|
|
^^^^
|
|
|
|
source.ts
|
|
|
|
^
|
|
|
|
source.ts keyword.operator.arithmetic.ts
|
2016-09-23 20:29:25 +03:00
|
|
|
^
|
2016-09-13 20:51:04 +03:00
|
|
|
source.ts
|
2016-09-23 20:29:25 +03:00
|
|
|
^
|
|
|
|
source.ts variable.other.readwrite.ts
|
2016-09-16 02:16:35 +03:00
|
|
|
^
|
|
|
|
source.ts punctuation.terminator.statement.ts
|
|
|
|
^^
|
|
|
|
source.ts
|
2016-09-13 20:51:04 +03:00
|
|
|
>let value2 = a / b
|
|
|
|
^^^
|
|
|
|
source.ts meta.var.expr.ts storage.type.ts
|
|
|
|
^
|
|
|
|
source.ts meta.var.expr.ts
|
|
|
|
^^^^^^
|
|
|
|
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts variable.other.readwrite.ts
|
|
|
|
^
|
|
|
|
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts keyword.operator.assignment.ts
|
2016-09-23 20:29:25 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts
|
2016-09-23 20:29:25 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts variable.other.readwrite.ts
|
2016-09-23 20:29:25 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts
|
2016-09-13 20:51:04 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts keyword.operator.arithmetic.ts
|
2016-09-23 20:29:25 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts
|
2016-09-23 20:29:25 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts variable.other.readwrite.ts
|
2016-09-23 20:29:25 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts
|
2016-09-13 20:51:04 +03:00
|
|
|
> / c * a + b / a / b / c;
|
|
|
|
^^^^
|
|
|
|
source.ts
|
|
|
|
^
|
|
|
|
source.ts keyword.operator.arithmetic.ts
|
2016-09-23 20:29:25 +03:00
|
|
|
^
|
2016-09-13 20:51:04 +03:00
|
|
|
source.ts
|
2016-09-23 20:29:25 +03:00
|
|
|
^
|
|
|
|
source.ts variable.other.readwrite.ts
|
|
|
|
^
|
|
|
|
source.ts
|
2016-09-13 20:51:04 +03:00
|
|
|
^
|
|
|
|
source.ts keyword.operator.arithmetic.ts
|
2016-09-23 20:29:25 +03:00
|
|
|
^
|
2016-09-13 20:51:04 +03:00
|
|
|
source.ts
|
2016-09-23 20:29:25 +03:00
|
|
|
^
|
|
|
|
source.ts variable.other.readwrite.ts
|
|
|
|
^
|
|
|
|
source.ts
|
2016-09-13 20:51:04 +03:00
|
|
|
^
|
|
|
|
source.ts keyword.operator.arithmetic.ts
|
2016-09-23 20:29:25 +03:00
|
|
|
^
|
2016-09-13 20:51:04 +03:00
|
|
|
source.ts
|
2016-09-23 20:29:25 +03:00
|
|
|
^
|
|
|
|
source.ts variable.other.readwrite.ts
|
|
|
|
^
|
|
|
|
source.ts
|
2016-09-13 20:51:04 +03:00
|
|
|
^
|
|
|
|
source.ts keyword.operator.arithmetic.ts
|
2016-09-23 20:29:25 +03:00
|
|
|
^
|
2016-09-13 20:51:04 +03:00
|
|
|
source.ts
|
2016-09-23 20:29:25 +03:00
|
|
|
^
|
|
|
|
source.ts variable.other.readwrite.ts
|
|
|
|
^
|
|
|
|
source.ts
|
2016-09-13 20:51:04 +03:00
|
|
|
^
|
|
|
|
source.ts keyword.operator.arithmetic.ts
|
2016-09-23 20:29:25 +03:00
|
|
|
^
|
2016-09-13 20:51:04 +03:00
|
|
|
source.ts
|
2016-09-23 20:29:25 +03:00
|
|
|
^
|
|
|
|
source.ts variable.other.readwrite.ts
|
|
|
|
^
|
|
|
|
source.ts
|
2016-09-13 20:51:04 +03:00
|
|
|
^
|
|
|
|
source.ts keyword.operator.arithmetic.ts
|
2016-09-23 20:29:25 +03:00
|
|
|
^
|
2016-09-13 20:51:04 +03:00
|
|
|
source.ts
|
2016-09-23 20:29:25 +03:00
|
|
|
^
|
|
|
|
source.ts variable.other.readwrite.ts
|
2016-09-16 02:16:35 +03:00
|
|
|
^
|
|
|
|
source.ts punctuation.terminator.statement.ts
|
|
|
|
^^
|
|
|
|
source.ts
|
2016-09-13 20:51:04 +03:00
|
|
|
>let value2 = a / b / c * a + b / a / b / c;
|
|
|
|
^^^
|
|
|
|
source.ts meta.var.expr.ts storage.type.ts
|
|
|
|
^
|
|
|
|
source.ts meta.var.expr.ts
|
|
|
|
^^^^^^
|
|
|
|
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts variable.other.readwrite.ts
|
|
|
|
^
|
|
|
|
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts keyword.operator.assignment.ts
|
2016-09-23 20:29:25 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts
|
2016-09-23 20:29:25 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts variable.other.readwrite.ts
|
2016-09-23 20:29:25 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts
|
2016-09-13 20:51:04 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts keyword.operator.arithmetic.ts
|
2016-09-23 20:29:25 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts
|
2016-09-23 20:29:25 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts variable.other.readwrite.ts
|
2016-09-23 20:29:25 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts
|
2016-09-13 20:51:04 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts keyword.operator.arithmetic.ts
|
2016-09-23 20:29:25 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts
|
2016-09-23 20:29:25 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts variable.other.readwrite.ts
|
2016-09-23 20:29:25 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts
|
2016-09-13 20:51:04 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts keyword.operator.arithmetic.ts
|
2016-09-23 20:29:25 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts
|
2016-09-23 20:29:25 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts variable.other.readwrite.ts
|
2016-09-23 20:29:25 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts
|
2016-09-13 20:51:04 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts keyword.operator.arithmetic.ts
|
2016-09-23 20:29:25 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts
|
2016-09-23 20:29:25 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts variable.other.readwrite.ts
|
2016-09-23 20:29:25 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts
|
2016-09-13 20:51:04 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts keyword.operator.arithmetic.ts
|
2016-09-23 20:29:25 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts
|
2016-09-23 20:29:25 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts variable.other.readwrite.ts
|
2016-09-23 20:29:25 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts
|
2016-09-13 20:51:04 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts keyword.operator.arithmetic.ts
|
2016-09-23 20:29:25 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts
|
2016-09-23 20:29:25 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts variable.other.readwrite.ts
|
2016-09-23 20:29:25 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts
|
2016-09-13 20:51:04 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts keyword.operator.arithmetic.ts
|
2016-09-23 20:29:25 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts
|
2016-09-23 20:29:25 +03:00
|
|
|
^
|
2016-10-12 20:48:50 +03:00
|
|
|
source.ts meta.var.expr.ts variable.other.readwrite.ts
|
2016-09-16 02:16:35 +03:00
|
|
|
^
|
|
|
|
source.ts punctuation.terminator.statement.ts
|