Changes for numeric literals
This commit is contained in:
Родитель
aea13ef0e7
Коммит
89d8a7bf75
|
@ -692,8 +692,33 @@ repository:
|
|||
- include: '#expression'
|
||||
|
||||
numeric-literal:
|
||||
name: constant.numeric.ts
|
||||
match: \b(?<=[^$])((0(x|X)[0-9a-fA-F]+)|(0(o|O)[0-7]+)|(0(b|B)(0|1)+)|(([0-9]+(\.[0-9]+)?))([eE]([+-]?)[0-9]+(\.[0-9]+)?)?)\b
|
||||
patterns:
|
||||
- name: constant.numeric.hex.ts
|
||||
match: \b(?<!\$)0(x|X)[0-9a-fA-F]+\b(?!\$)
|
||||
- name: constant.numeric.binary.ts
|
||||
match: \b(?<!\$)0(b|B)[01]+\b(?!\$)
|
||||
- name: constant.numeric.octal.ts
|
||||
match: \b(?<!\$)0(o|O)?[0-7]+\b(?!\$)
|
||||
- match: |-
|
||||
(?x)
|
||||
(?<!\$)(?:
|
||||
(?:\b[0-9]+(\.)[0-9]+[eE][+-]?[0-9]+\b)| # 1.1E+3
|
||||
(?:\b[0-9]+(\.)[eE][+-]?[0-9]+\b)| # 1.E+3
|
||||
(?:\B(\.)[0-9]+[eE][+-]?[0-9]+\b)| # .1E+3
|
||||
(?:\b[0-9]+[eE][+-]?[0-9]+\b)| # 1E+3
|
||||
(?:\b[0-9]+(\.)[0-9]+\b)| # 1.1
|
||||
(?:\b[0-9]+(\.)\B)| # 1.
|
||||
(?:\B(\.)[0-9]+\b)| # .1
|
||||
(?:\b[0-9]+\b(?!\.)) # 1
|
||||
)(?!\$)
|
||||
captures:
|
||||
'0': {name: constant.numeric.decimal.ts}
|
||||
'1': {name: meta.delimiter.decimal.period.ts}
|
||||
'2': {name: meta.delimiter.decimal.period.ts}
|
||||
'3': {name: meta.delimiter.decimal.period.ts}
|
||||
'4': {name: meta.delimiter.decimal.period.ts}
|
||||
'5': {name: meta.delimiter.decimal.period.ts}
|
||||
'6': {name: meta.delimiter.decimal.period.ts}
|
||||
|
||||
boolean-literal:
|
||||
name: constant.language.boolean.ts
|
||||
|
|
|
@ -1044,10 +1044,79 @@
|
|||
</dict>
|
||||
<key>numeric-literal</key>
|
||||
<dict>
|
||||
<key>match</key>
|
||||
<string>\b(?<=[^$])((0(x|X)[0-9a-fA-F]+)|(0(o|O)[0-7]+)|(0(b|B)(0|1)+)|(([0-9]+(\.[0-9]+)?))([eE]([+-]?)[0-9]+(\.[0-9]+)?)?)\b</string>
|
||||
<key>name</key>
|
||||
<string>constant.numeric.ts</string>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>match</key>
|
||||
<string>\b(?<!\$)0(x|X)[0-9a-fA-F]+\b(?!\$)</string>
|
||||
<key>name</key>
|
||||
<string>constant.numeric.hex.ts</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>match</key>
|
||||
<string>\b(?<!\$)0(b|B)[01]+\b(?!\$)</string>
|
||||
<key>name</key>
|
||||
<string>constant.numeric.binary.ts</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>match</key>
|
||||
<string>\b(?<!\$)0(o|O)?[0-7]+\b(?!\$)</string>
|
||||
<key>name</key>
|
||||
<string>constant.numeric.octal.ts</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>captures</key>
|
||||
<dict>
|
||||
<key>0</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>constant.numeric.decimal.ts</string>
|
||||
</dict>
|
||||
<key>1</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>meta.delimiter.decimal.period.ts</string>
|
||||
</dict>
|
||||
<key>2</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>meta.delimiter.decimal.period.ts</string>
|
||||
</dict>
|
||||
<key>3</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>meta.delimiter.decimal.period.ts</string>
|
||||
</dict>
|
||||
<key>4</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>meta.delimiter.decimal.period.ts</string>
|
||||
</dict>
|
||||
<key>5</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>meta.delimiter.decimal.period.ts</string>
|
||||
</dict>
|
||||
<key>6</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>meta.delimiter.decimal.period.ts</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>match</key>
|
||||
<string>(?x)
|
||||
(?<!\$)(?:
|
||||
(?:\b[0-9]+(\.)[0-9]+[eE][+-]?[0-9]+\b)| # 1.1E+3
|
||||
(?:\b[0-9]+(\.)[eE][+-]?[0-9]+\b)| # 1.E+3
|
||||
(?:\B(\.)[0-9]+[eE][+-]?[0-9]+\b)| # .1E+3
|
||||
(?:\b[0-9]+[eE][+-]?[0-9]+\b)| # 1E+3
|
||||
(?:\b[0-9]+(\.)[0-9]+\b)| # 1.1
|
||||
(?:\b[0-9]+(\.)\B)| # 1.
|
||||
(?:\B(\.)[0-9]+\b)| # .1
|
||||
(?:\b[0-9]+\b(?!\.)) # 1
|
||||
)(?!\$)</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
<key>object-body</key>
|
||||
<dict>
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
|
||||
<dict>
|
||||
<key>scope</key>
|
||||
<string>constant.numeric.ts</string>
|
||||
<string>constant.numeric.decimal.ts, meta.delimiter.decimal.period.ts, constant.numeric.hex.ts, constant.numeric.binary.ts, constant.numeric.octal.ts</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>vsclassificationtype</key>
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# [PackageDev] target_format: plist, ext: tmLanguage
|
||||
# Similar to TypeScript.YAML-tmLanguage except:
|
||||
# - Remove type assertion (cast.expr.tsx)
|
||||
# - Add JSX expression (HTML-like expression).
|
||||
|
@ -681,8 +682,33 @@ repository:
|
|||
- include: '#expression'
|
||||
|
||||
numeric-literal:
|
||||
name: constant.numeric.tsx
|
||||
match: \b(?<=[^$])((0(x|X)[0-9a-fA-F]+)|(0(o|O)[0-7]+)|(0(b|B)(0|1)+)|(([0-9]+(\.[0-9]+)?))([eE]([+-]?)[0-9]+(\.[0-9]+)?)?)\b
|
||||
patterns:
|
||||
- name: constant.numeric.hex.tsx
|
||||
match: \b(?<!\$)0(x|X)[0-9a-fA-F]+\b(?!\$)
|
||||
- name: constant.numeric.binary.tsx
|
||||
match: \b(?<!\$)0(b|B)[01]+\b(?!\$)
|
||||
- name: constant.numeric.octal.tsx
|
||||
match: \b(?<!\$)0(o|O)?[0-7]+\b(?!\$)
|
||||
- match: |-
|
||||
(?x)
|
||||
(?<!\$)(?:
|
||||
(?:\b[0-9]+(\.)[0-9]+[eE][+-]?[0-9]+\b)| # 1.1E+3
|
||||
(?:\b[0-9]+(\.)[eE][+-]?[0-9]+\b)| # 1.E+3
|
||||
(?:\B(\.)[0-9]+[eE][+-]?[0-9]+\b)| # .1E+3
|
||||
(?:\b[0-9]+[eE][+-]?[0-9]+\b)| # 1E+3
|
||||
(?:\b[0-9]+(\.)[0-9]+\b)| # 1.1
|
||||
(?:\b[0-9]+(\.)\B)| # 1.
|
||||
(?:\B(\.)[0-9]+\b)| # .1
|
||||
(?:\b[0-9]+\b(?!\.)) # 1
|
||||
)(?!\$)
|
||||
captures:
|
||||
'0': {name: constant.numeric.decimal.tsx}
|
||||
'1': {name: meta.delimiter.decimal.period.tsx}
|
||||
'2': {name: meta.delimiter.decimal.period.tsx}
|
||||
'3': {name: meta.delimiter.decimal.period.tsx}
|
||||
'4': {name: meta.delimiter.decimal.period.tsx}
|
||||
'5': {name: meta.delimiter.decimal.period.tsx}
|
||||
'6': {name: meta.delimiter.decimal.period.tsx}
|
||||
|
||||
boolean-literal:
|
||||
name: constant.language.boolean.tsx
|
||||
|
|
|
@ -1410,10 +1410,79 @@
|
|||
</dict>
|
||||
<key>numeric-literal</key>
|
||||
<dict>
|
||||
<key>match</key>
|
||||
<string>\b(?<=[^$])((0(x|X)[0-9a-fA-F]+)|(0(o|O)[0-7]+)|(0(b|B)(0|1)+)|(([0-9]+(\.[0-9]+)?))([eE]([+-]?)[0-9]+(\.[0-9]+)?)?)\b</string>
|
||||
<key>name</key>
|
||||
<string>constant.numeric.tsx</string>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>match</key>
|
||||
<string>\b(?<!\$)0(x|X)[0-9a-fA-F]+\b(?!\$)</string>
|
||||
<key>name</key>
|
||||
<string>constant.numeric.hex.tsx</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>match</key>
|
||||
<string>\b(?<!\$)0(b|B)[01]+\b(?!\$)</string>
|
||||
<key>name</key>
|
||||
<string>constant.numeric.binary.tsx</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>match</key>
|
||||
<string>\b(?<!\$)0(o|O)?[0-7]+\b(?!\$)</string>
|
||||
<key>name</key>
|
||||
<string>constant.numeric.octal.tsx</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>captures</key>
|
||||
<dict>
|
||||
<key>0</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>constant.numeric.decimal.tsx</string>
|
||||
</dict>
|
||||
<key>1</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>meta.delimiter.decimal.period.tsx</string>
|
||||
</dict>
|
||||
<key>2</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>meta.delimiter.decimal.period.tsx</string>
|
||||
</dict>
|
||||
<key>3</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>meta.delimiter.decimal.period.tsx</string>
|
||||
</dict>
|
||||
<key>4</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>meta.delimiter.decimal.period.tsx</string>
|
||||
</dict>
|
||||
<key>5</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>meta.delimiter.decimal.period.tsx</string>
|
||||
</dict>
|
||||
<key>6</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>meta.delimiter.decimal.period.tsx</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>match</key>
|
||||
<string>(?x)
|
||||
(?<!\$)(?:
|
||||
(?:\b[0-9]+(\.)[0-9]+[eE][+-]?[0-9]+\b)| # 1.1E+3
|
||||
(?:\b[0-9]+(\.)[eE][+-]?[0-9]+\b)| # 1.E+3
|
||||
(?:\B(\.)[0-9]+[eE][+-]?[0-9]+\b)| # .1E+3
|
||||
(?:\b[0-9]+[eE][+-]?[0-9]+\b)| # 1E+3
|
||||
(?:\b[0-9]+(\.)[0-9]+\b)| # 1.1
|
||||
(?:\b[0-9]+(\.)\B)| # 1.
|
||||
(?:\B(\.)[0-9]+\b)| # .1
|
||||
(?:\b[0-9]+\b(?!\.)) # 1
|
||||
)(?!\$)</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
<key>object-body</key>
|
||||
<dict>
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
|
||||
<dict>
|
||||
<key>scope</key>
|
||||
<string>constant.numeric.tsx</string>
|
||||
<string>constant.numeric.decimal.tsx, meta.delimiter.decimal.period.tsx, constant.numeric.hex.tsx, constant.numeric.binary.tsx, constant.numeric.octal.tsx</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>vsclassificationtype</key>
|
||||
|
|
|
@ -72,7 +72,7 @@ cow.makeSound();
|
|||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.decl.block.ts
|
||||
^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.decl.block.ts constant.numeric.ts
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.decl.block.ts constant.numeric.decimal.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.decl.block.ts
|
||||
^
|
||||
|
|
|
@ -253,11 +253,11 @@ class TestClass {
|
|||
^
|
||||
source.ts meta.function.ts meta.decl.block.ts meta.array.literal.ts meta.brace.square.ts
|
||||
^
|
||||
source.ts meta.function.ts meta.decl.block.ts meta.array.literal.ts constant.numeric.ts
|
||||
source.ts meta.function.ts meta.decl.block.ts meta.array.literal.ts constant.numeric.decimal.ts
|
||||
^^
|
||||
source.ts meta.function.ts meta.decl.block.ts meta.array.literal.ts
|
||||
^
|
||||
source.ts meta.function.ts meta.decl.block.ts meta.array.literal.ts constant.numeric.ts
|
||||
source.ts meta.function.ts meta.decl.block.ts meta.array.literal.ts constant.numeric.decimal.ts
|
||||
^
|
||||
source.ts meta.function.ts meta.decl.block.ts meta.array.literal.ts meta.brace.square.ts
|
||||
^
|
||||
|
@ -726,7 +726,7 @@ class TestClass {
|
|||
^
|
||||
source.ts meta.function.ts meta.decl.block.ts
|
||||
^
|
||||
source.ts meta.function.ts meta.decl.block.ts constant.numeric.ts
|
||||
source.ts meta.function.ts meta.decl.block.ts constant.numeric.decimal.ts
|
||||
^
|
||||
source.ts meta.function.ts meta.decl.block.ts
|
||||
^
|
||||
|
@ -1081,11 +1081,11 @@ class TestClass {
|
|||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.decl.block.ts meta.array.literal.ts meta.brace.square.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.decl.block.ts meta.array.literal.ts constant.numeric.ts
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.decl.block.ts meta.array.literal.ts constant.numeric.decimal.ts
|
||||
^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.decl.block.ts meta.array.literal.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.decl.block.ts meta.array.literal.ts constant.numeric.ts
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.decl.block.ts meta.array.literal.ts constant.numeric.decimal.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.decl.block.ts meta.array.literal.ts meta.brace.square.ts
|
||||
^
|
||||
|
@ -1550,7 +1550,7 @@ class TestClass {
|
|||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.decl.block.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.decl.block.ts constant.numeric.ts
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.decl.block.ts constant.numeric.decimal.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.decl.block.ts
|
||||
^
|
||||
|
|
|
@ -35,7 +35,7 @@ let i = ^^1, j = ^^1e3
|
|||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^^^^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.hex.ts
|
||||
^^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
>let number2 = 14e15
|
||||
|
@ -50,7 +50,7 @@ let i = ^^1, j = ^^1e3
|
|||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^^^^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
>let number3 = 10.42e41.5
|
||||
^^^
|
||||
source.ts meta.var.expr.ts storage.type.ts
|
||||
|
@ -62,8 +62,16 @@ let i = ^^1, j = ^^1e3
|
|||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^^^^^^^^^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts
|
||||
^^^^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
>let number4 = 4
|
||||
|
@ -78,7 +86,7 @@ let i = ^^1, j = ^^1e3
|
|||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
>let number5 = 51.4
|
||||
^^^
|
||||
source.ts meta.var.expr.ts storage.type.ts
|
||||
|
@ -90,8 +98,12 @@ let i = ^^1, j = ^^1e3
|
|||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^^^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
>let number6 = 12.4E10.2
|
||||
^^^
|
||||
source.ts meta.var.expr.ts storage.type.ts
|
||||
|
@ -103,8 +115,16 @@ let i = ^^1, j = ^^1e3
|
|||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^^^^^^^^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts
|
||||
^^^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
>let number7 = 14.6e+10
|
||||
^^^
|
||||
source.ts meta.var.expr.ts storage.type.ts
|
||||
|
@ -116,8 +136,12 @@ let i = ^^1, j = ^^1e3
|
|||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^^^^^^^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts
|
||||
^^^^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
>let number8 = 12E4
|
||||
^^^
|
||||
source.ts meta.var.expr.ts storage.type.ts
|
||||
|
@ -130,7 +154,7 @@ let i = ^^1, j = ^^1e3
|
|||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^^^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
>let number9 = 10e10
|
||||
^^^
|
||||
source.ts meta.var.expr.ts storage.type.ts
|
||||
|
@ -143,7 +167,7 @@ let i = ^^1, j = ^^1e3
|
|||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^^^^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
>let number10 = 14e14.5
|
||||
^^^
|
||||
source.ts meta.var.expr.ts storage.type.ts
|
||||
|
@ -155,8 +179,12 @@ let i = ^^1, j = ^^1e3
|
|||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^^^^^^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
^^^^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
>let number11 = 12E-10
|
||||
^^^
|
||||
source.ts meta.var.expr.ts storage.type.ts
|
||||
|
@ -169,7 +197,7 @@ let i = ^^1, j = ^^1e3
|
|||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^^^^^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
>let number12 = 13.4e-14.2
|
||||
^^^
|
||||
source.ts meta.var.expr.ts storage.type.ts
|
||||
|
@ -181,8 +209,16 @@ let i = ^^1, j = ^^1e3
|
|||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^^^^^^^^^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts
|
||||
^^^^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
>let number13 = 14.12
|
||||
^^^
|
||||
source.ts meta.var.expr.ts storage.type.ts
|
||||
|
@ -194,8 +230,12 @@ let i = ^^1, j = ^^1e3
|
|||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^^^^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts
|
||||
^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
>let number14 = 10.2E+4
|
||||
^^^
|
||||
source.ts meta.var.expr.ts storage.type.ts
|
||||
|
@ -207,8 +247,12 @@ let i = ^^1, j = ^^1e3
|
|||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^^^^^^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts
|
||||
^^^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
>let number6 = 5.00567789e+2
|
||||
^^^
|
||||
source.ts meta.var.expr.ts storage.type.ts
|
||||
|
@ -220,8 +264,12 @@ let i = ^^1, j = ^^1e3
|
|||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^^^^^^^^^^^^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts
|
||||
^^^^^^^^^^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
>let i = 1, j = 1e3
|
||||
^^^
|
||||
source.ts meta.var.expr.ts storage.type.ts
|
||||
|
@ -234,7 +282,7 @@ let i = ^^1, j = ^^1e3
|
|||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
^^
|
||||
source.ts meta.var.expr.ts
|
||||
^
|
||||
|
@ -244,7 +292,7 @@ let i = ^^1, j = ^^1e3
|
|||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
>
|
||||
^
|
||||
source.ts
|
||||
|
|
|
@ -25,54 +25,54 @@ let i = ^^1, j = ^^1e3
|
|||
|
||||
>let number1 = 0x100
|
||||
^^^^^
|
||||
[1, 15]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
[1, 15]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.hex.ts
|
||||
>let number2 = 14e15
|
||||
^^^^^
|
||||
[2, 15]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
[2, 15]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
>let number3 = 10.42e41.5
|
||||
^^^^^^^^^^
|
||||
[3, 15]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
^^
|
||||
[3, 15]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
>let number4 = 4
|
||||
^
|
||||
[4, 15]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
[4, 15]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
>let number5 = 51.4
|
||||
^^^^
|
||||
[5, 15]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
^^
|
||||
[5, 15]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
>let number6 = 12.4E10.2
|
||||
^^^^^^^^^
|
||||
[6, 15]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
^^
|
||||
[6, 15]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
>let number7 = 14.6e+10
|
||||
^^^^^^^^
|
||||
[7, 15]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
^^
|
||||
[7, 15]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
>let number8 = 12E4
|
||||
^^^^
|
||||
[8, 15]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
[8, 15]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
>let number9 = 10e10
|
||||
^^^^^
|
||||
[9, 15]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
[9, 15]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
>let number10 = 14e14.5
|
||||
^^^^^^^
|
||||
[10, 16]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
^^^^^
|
||||
[10, 16]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
>let number11 = 12E-10
|
||||
^^^^^^
|
||||
[11, 16]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
[11, 16]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
>let number12 = 13.4e-14.2
|
||||
^^^^^^^^^^
|
||||
[12, 16]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
^^
|
||||
[12, 16]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
>let number13 = 14.12
|
||||
^^^^^
|
||||
[13, 16]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
^^
|
||||
[13, 16]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
>let number14 = 10.2E+4
|
||||
^^^^^^^
|
||||
[14, 16]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
^^
|
||||
[14, 16]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
>let number6 = 5.00567789e+2
|
||||
^^^^^^^^^^^^^
|
||||
[15, 15]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
^
|
||||
[15, 15]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
>let i = 1, j = 1e3
|
||||
^
|
||||
[16, 9]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
[16, 9]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
^^^
|
||||
[16, 16]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
[16, 16]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
>
|
||||
>/*
|
||||
>
|
||||
|
|
|
@ -23,7 +23,7 @@ for (^^let a = 1; a ^^< 10; a++) {
|
|||
^
|
||||
source.ts
|
||||
^
|
||||
source.ts constant.numeric.ts
|
||||
source.ts constant.numeric.decimal.ts
|
||||
^^^^
|
||||
source.ts
|
||||
^
|
||||
|
@ -31,7 +31,7 @@ for (^^let a = 1; a ^^< 10; a++) {
|
|||
^
|
||||
source.ts
|
||||
^^
|
||||
source.ts constant.numeric.ts
|
||||
source.ts constant.numeric.decimal.ts
|
||||
^^^
|
||||
source.ts
|
||||
^^
|
||||
|
@ -60,7 +60,7 @@ for (^^let a = 1; a ^^< 10; a++) {
|
|||
^
|
||||
source.ts meta.block.ts
|
||||
^
|
||||
source.ts meta.block.ts constant.numeric.ts
|
||||
source.ts meta.block.ts constant.numeric.decimal.ts
|
||||
^^^^
|
||||
source.ts meta.block.ts
|
||||
^
|
||||
|
|
|
@ -37,7 +37,7 @@ var w = ^^0O767;
|
|||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
^^
|
||||
source.ts
|
||||
>var y = 0x123;
|
||||
|
@ -52,7 +52,7 @@ var w = ^^0O767;
|
|||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^^^^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.hex.ts
|
||||
^^
|
||||
source.ts
|
||||
>var z = 0b10101;
|
||||
|
@ -67,7 +67,7 @@ var w = ^^0O767;
|
|||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^^^^^^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.binary.ts
|
||||
^^
|
||||
source.ts
|
||||
>var z = 0B00000;
|
||||
|
@ -82,7 +82,7 @@ var w = ^^0O767;
|
|||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^^^^^^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.binary.ts
|
||||
^^
|
||||
source.ts
|
||||
>var j = 0o474774;
|
||||
|
@ -97,7 +97,7 @@ var w = ^^0O767;
|
|||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^^^^^^^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.octal.ts
|
||||
^^
|
||||
source.ts
|
||||
>var w = 0O767;
|
||||
|
@ -112,7 +112,7 @@ var w = ^^0O767;
|
|||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^^^^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.octal.ts
|
||||
^^
|
||||
source.ts
|
||||
>
|
||||
|
|
|
@ -17,22 +17,22 @@ var w = ^^0O767;
|
|||
>
|
||||
>var x = 123;
|
||||
^^^
|
||||
[4, 9]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
[4, 9]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
>var y = 0x123;
|
||||
^^^^^
|
||||
[5, 9]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
[5, 9]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.hex.ts
|
||||
>var z = 0b10101;
|
||||
^^^^^^^
|
||||
[6, 9]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
[6, 9]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.binary.ts
|
||||
>var z = 0B00000;
|
||||
^^^^^^^
|
||||
[7, 9]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
[7, 9]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.binary.ts
|
||||
>var j = 0o474774;
|
||||
^^^^^^^^
|
||||
[8, 9]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
[8, 9]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.octal.ts
|
||||
>var w = 0O767;
|
||||
^^^^^
|
||||
[9, 9]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
[9, 9]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.octal.ts
|
||||
>
|
||||
^
|
||||
[10, 1]: source.ts
|
|
@ -139,7 +139,7 @@ return^^Name+=1;
|
|||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
^^
|
||||
source.ts
|
||||
>functionName=1;
|
||||
|
@ -148,7 +148,7 @@ return^^Name+=1;
|
|||
^
|
||||
source.ts keyword.operator.comparison.ts
|
||||
^
|
||||
source.ts constant.numeric.ts
|
||||
source.ts constant.numeric.decimal.ts
|
||||
^^
|
||||
source.ts
|
||||
>
|
||||
|
@ -168,7 +168,7 @@ return^^Name+=1;
|
|||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
^^
|
||||
source.ts
|
||||
>
|
||||
|
@ -217,7 +217,7 @@ return^^Name+=1;
|
|||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
^^
|
||||
source.ts
|
||||
>returnName+=1;
|
||||
|
@ -228,7 +228,7 @@ return^^Name+=1;
|
|||
^
|
||||
source.ts keyword.operator.comparison.ts
|
||||
^
|
||||
source.ts constant.numeric.ts
|
||||
source.ts constant.numeric.decimal.ts
|
||||
^^
|
||||
source.ts
|
||||
>
|
||||
|
|
|
@ -96,7 +96,7 @@ class A4 {
|
|||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.decl.block.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.decl.block.ts constant.numeric.ts
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.decl.block.ts constant.numeric.decimal.ts
|
||||
^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.decl.block.ts
|
||||
> }
|
||||
|
@ -182,7 +182,7 @@ class A4 {
|
|||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.decl.block.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.decl.block.ts constant.numeric.ts
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.decl.block.ts constant.numeric.decimal.ts
|
||||
> }
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.decl.block.ts
|
||||
|
@ -264,7 +264,7 @@ class A4 {
|
|||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.decl.block.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.decl.block.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.decl.block.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
> switch (d.default) {
|
||||
^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.decl.block.ts
|
||||
|
@ -288,7 +288,7 @@ class A4 {
|
|||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.decl.block.ts switch-statement.expr.ts switch-block.expr.ts case-clause.expr.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.decl.block.ts switch-statement.expr.ts switch-block.expr.ts case-clause.expr.ts constant.numeric.ts
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.decl.block.ts switch-statement.expr.ts switch-block.expr.ts case-clause.expr.ts constant.numeric.decimal.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.decl.block.ts switch-statement.expr.ts switch-block.expr.ts case-clause.expr.ts
|
||||
> case 2:
|
||||
|
@ -299,7 +299,7 @@ class A4 {
|
|||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.decl.block.ts switch-statement.expr.ts switch-block.expr.ts case-clause.expr.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.decl.block.ts switch-statement.expr.ts switch-block.expr.ts case-clause.expr.ts constant.numeric.ts
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.decl.block.ts switch-statement.expr.ts switch-block.expr.ts case-clause.expr.ts constant.numeric.decimal.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.decl.block.ts switch-statement.expr.ts switch-block.expr.ts case-clause.expr.ts
|
||||
> default:
|
||||
|
@ -402,7 +402,7 @@ class A4 {
|
|||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.decl.block.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.decl.block.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.decl.block.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
> switch (d.default) {
|
||||
^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.decl.block.ts
|
||||
|
@ -426,7 +426,7 @@ class A4 {
|
|||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.decl.block.ts switch-statement.expr.ts switch-block.expr.ts case-clause.expr.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.decl.block.ts switch-statement.expr.ts switch-block.expr.ts case-clause.expr.ts constant.numeric.ts
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.decl.block.ts switch-statement.expr.ts switch-block.expr.ts case-clause.expr.ts constant.numeric.decimal.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.decl.block.ts switch-statement.expr.ts switch-block.expr.ts case-clause.expr.ts
|
||||
> case 2:
|
||||
|
@ -437,7 +437,7 @@ class A4 {
|
|||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.decl.block.ts switch-statement.expr.ts switch-block.expr.ts case-clause.expr.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.decl.block.ts switch-statement.expr.ts switch-block.expr.ts case-clause.expr.ts constant.numeric.ts
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.decl.block.ts switch-statement.expr.ts switch-block.expr.ts case-clause.expr.ts constant.numeric.decimal.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.decl.block.ts switch-statement.expr.ts switch-block.expr.ts case-clause.expr.ts
|
||||
> default:
|
||||
|
|
|
@ -299,7 +299,7 @@ var j: I = {}
|
|||
^
|
||||
source.ts meta.block.ts switch-statement.expr.ts switch-block.expr.ts case-clause.expr.ts
|
||||
^
|
||||
source.ts meta.block.ts switch-statement.expr.ts switch-block.expr.ts case-clause.expr.ts constant.numeric.ts
|
||||
source.ts meta.block.ts switch-statement.expr.ts switch-block.expr.ts case-clause.expr.ts constant.numeric.decimal.ts
|
||||
^
|
||||
source.ts meta.block.ts switch-statement.expr.ts switch-block.expr.ts case-clause.expr.ts
|
||||
^
|
||||
|
@ -316,7 +316,7 @@ var j: I = {}
|
|||
^
|
||||
source.ts meta.block.ts switch-statement.expr.ts switch-block.expr.ts case-clause.expr.ts
|
||||
^
|
||||
source.ts meta.block.ts switch-statement.expr.ts switch-block.expr.ts case-clause.expr.ts constant.numeric.ts
|
||||
source.ts meta.block.ts switch-statement.expr.ts switch-block.expr.ts case-clause.expr.ts constant.numeric.decimal.ts
|
||||
^
|
||||
source.ts meta.block.ts switch-statement.expr.ts switch-block.expr.ts case-clause.expr.ts
|
||||
^
|
||||
|
@ -470,11 +470,11 @@ var j: I = {}
|
|||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.brace.paren.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.brace.paren.ts
|
||||
^^
|
||||
|
|
|
@ -265,7 +265,7 @@ let new_string = ^^"^^Changes End here^^"
|
|||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts string.single.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts string.single.ts
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
|
@ -21,7 +21,7 @@ original file
|
|||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
^^
|
||||
source.ts
|
||||
> var b = 1;
|
||||
|
@ -38,7 +38,7 @@ original file
|
|||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
^^
|
||||
source.ts
|
||||
> var c = a ^ b;
|
||||
|
|
|
@ -16,7 +16,7 @@ original file
|
|||
^
|
||||
[2, 6]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts variable.ts
|
||||
^
|
||||
[2, 10]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
[2, 10]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
> var c = a ^ b;
|
||||
^
|
||||
[3, 1]: source.ts meta.var.expr.ts
|
||||
|
|
|
@ -56,7 +56,7 @@ const^^able^^ += " Royal, I say!";
|
|||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
^^
|
||||
source.ts
|
||||
>constenum += 10;
|
||||
|
@ -69,7 +69,7 @@ const^^able^^ += " Royal, I say!";
|
|||
^
|
||||
source.ts
|
||||
^^
|
||||
source.ts constant.numeric.ts
|
||||
source.ts constant.numeric.decimal.ts
|
||||
^^
|
||||
source.ts
|
||||
>const enum E { }
|
||||
|
|
|
@ -671,7 +671,7 @@ var e = <div data-custom-attribute="^^foo" />
|
|||
^
|
||||
source.tsx meta.var.expr.tsx meta.var-single-variable.expr.tsx tag.without-attributes.tsx meta.brace.curly.tsx meta.brace.paren.tsx
|
||||
^^^
|
||||
source.tsx meta.var.expr.tsx meta.var-single-variable.expr.tsx tag.without-attributes.tsx meta.brace.curly.tsx constant.numeric.tsx
|
||||
source.tsx meta.var.expr.tsx meta.var-single-variable.expr.tsx tag.without-attributes.tsx meta.brace.curly.tsx constant.numeric.decimal.tsx
|
||||
^
|
||||
source.tsx meta.var.expr.tsx meta.var-single-variable.expr.tsx tag.without-attributes.tsx meta.brace.curly.tsx meta.brace.paren.tsx
|
||||
^
|
||||
|
|
|
@ -10,13 +10,13 @@ original file
|
|||
^
|
||||
source.ts
|
||||
^
|
||||
source.ts constant.numeric.ts
|
||||
source.ts constant.numeric.decimal.ts
|
||||
^^^
|
||||
source.ts
|
||||
>awaiting 1;
|
||||
^^^^^^^^^
|
||||
source.ts
|
||||
^
|
||||
source.ts constant.numeric.ts
|
||||
source.ts constant.numeric.decimal.ts
|
||||
^^
|
||||
source.ts
|
|
@ -33,7 +33,7 @@ x ^^instanceof y;
|
|||
^
|
||||
source.ts switch-statement.expr.ts switch-block.expr.ts case-clause.expr.ts
|
||||
^
|
||||
source.ts switch-statement.expr.ts switch-block.expr.ts case-clause.expr.ts constant.numeric.ts
|
||||
source.ts switch-statement.expr.ts switch-block.expr.ts case-clause.expr.ts constant.numeric.decimal.ts
|
||||
^
|
||||
source.ts switch-statement.expr.ts switch-block.expr.ts case-clause.expr.ts
|
||||
^^
|
||||
|
|
|
@ -35,7 +35,7 @@ var ^^obj = {
|
|||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.var.expr.ts
|
||||
^^
|
||||
|
@ -65,7 +65,7 @@ var ^^obj = {
|
|||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.function.ts meta.decl.block.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.function.ts meta.decl.block.ts constant.numeric.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.function.ts meta.decl.block.ts constant.numeric.decimal.ts
|
||||
^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.function.ts meta.decl.block.ts
|
||||
^
|
||||
|
@ -219,6 +219,6 @@ var ^^obj = {
|
|||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
^^
|
||||
source.ts
|
|
@ -0,0 +1,198 @@
|
|||
original file
|
||||
-----------------------------------
|
||||
var a = 0xA;
|
||||
var b = 0b1;
|
||||
var c = 0o7;
|
||||
var d = 1.1E+3;
|
||||
var e = 1.E+3;
|
||||
var f = .1E+3;
|
||||
var g = 1E+3;
|
||||
var h = 1.1;
|
||||
var i = 1.;
|
||||
var j = .1;
|
||||
var k = 1;
|
||||
-----------------------------------
|
||||
|
||||
>var a = 0xA;
|
||||
^^^
|
||||
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.ts
|
||||
^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.hex.ts
|
||||
^^^
|
||||
source.ts
|
||||
>var b = 0b1;
|
||||
^^^
|
||||
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.ts
|
||||
^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.binary.ts
|
||||
^^^
|
||||
source.ts
|
||||
>var c = 0o7;
|
||||
^^^
|
||||
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.ts
|
||||
^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.octal.ts
|
||||
^^^
|
||||
source.ts
|
||||
>var d = 1.1E+3;
|
||||
^^^
|
||||
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.ts
|
||||
^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts
|
||||
^^^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
^^^
|
||||
source.ts
|
||||
>var e = 1.E+3;
|
||||
^^^
|
||||
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.ts
|
||||
^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts
|
||||
^^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
^^^
|
||||
source.ts
|
||||
>var f = .1E+3;
|
||||
^^^
|
||||
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.ts
|
||||
^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts
|
||||
^^^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
^^^
|
||||
source.ts
|
||||
>var g = 1E+3;
|
||||
^^^
|
||||
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.ts
|
||||
^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^^^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
^^^
|
||||
source.ts
|
||||
>var h = 1.1;
|
||||
^^^
|
||||
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.ts
|
||||
^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
^^^
|
||||
source.ts
|
||||
>var i = 1.;
|
||||
^^^
|
||||
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.ts
|
||||
^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts
|
||||
^^^
|
||||
source.ts
|
||||
>var j = .1;
|
||||
^^^
|
||||
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.ts
|
||||
^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
^^^
|
||||
source.ts
|
||||
>var k = 1;
|
||||
^^^
|
||||
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.ts
|
||||
^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
^^
|
||||
source.ts
|
|
@ -0,0 +1,26 @@
|
|||
original file
|
||||
-----------------------------------
|
||||
var a = 0xA;
|
||||
var b = 0b1;
|
||||
var c = 0o7;
|
||||
var d = 1.1E+3;
|
||||
var e = 1.E+3;
|
||||
var f = .1E+3;
|
||||
var g = 1E+3;
|
||||
var h = 1.1;
|
||||
var i = 1.;
|
||||
var j = .1;
|
||||
var k = 1;
|
||||
-----------------------------------
|
||||
|
||||
>var a = 0xA;
|
||||
>var b = 0b1;
|
||||
>var c = 0o7;
|
||||
>var d = 1.1E+3;
|
||||
>var e = 1.E+3;
|
||||
>var f = .1E+3;
|
||||
>var g = 1E+3;
|
||||
>var h = 1.1;
|
||||
>var i = 1.;
|
||||
>var j = .1;
|
||||
>var k = 1;
|
|
@ -0,0 +1,11 @@
|
|||
var a = 0xA;
|
||||
var b = 0b1;
|
||||
var c = 0o7;
|
||||
var d = 1.1E+3;
|
||||
var e = 1.E+3;
|
||||
var f = .1E+3;
|
||||
var g = 1E+3;
|
||||
var h = 1.1;
|
||||
var i = 1.;
|
||||
var j = .1;
|
||||
var k = 1;
|
Загрузка…
Ссылка в новой задаче