-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
0cab1cc
commit 4e252af
Showing
8 changed files
with
487 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
original file | ||
----------------------------------- | ||
interface Test<T> { | ||
test: T; | ||
} | ||
|
||
interface Props { | ||
prop: Test<T>; | ||
} | ||
|
||
class Whatever { | ||
} | ||
----------------------------------- | ||
|
||
>interface Test<T> { | ||
^^^^^^^^^ | ||
source.tsx meta.declaration.object.tsx storage.type.interface.tsx | ||
^ | ||
source.tsx meta.declaration.object.tsx | ||
^^^^ | ||
source.tsx meta.declaration.object.tsx meta.object.name.tsx entity.name.class.tsx | ||
^ | ||
source.tsx meta.declaration.object.tsx meta.type.parameters.tsx punctuation.definition.typeparameters.begin.tsx | ||
^ | ||
source.tsx meta.declaration.object.tsx meta.type.parameters.tsx entity.name.type.tsx | ||
^ | ||
source.tsx meta.declaration.object.tsx meta.type.parameters.tsx punctuation.definition.typeparameters.end.tsx | ||
^ | ||
source.tsx meta.declaration.object.tsx | ||
^ | ||
source.tsx meta.declaration.object.tsx meta.object.body.tsx punctuation.definition.block.tsx | ||
^^ | ||
source.tsx meta.declaration.object.tsx meta.object.body.tsx | ||
> test: T; | ||
^^^^ | ||
source.tsx meta.declaration.object.tsx meta.object.body.tsx meta.field.declaration.tsx | ||
^^^^ | ||
source.tsx meta.declaration.object.tsx meta.object.body.tsx meta.field.declaration.tsx variable.object.property.tsx | ||
^ | ||
source.tsx meta.declaration.object.tsx meta.object.body.tsx meta.field.declaration.tsx meta.type.annotation.tsx | ||
^ | ||
source.tsx meta.declaration.object.tsx meta.object.body.tsx meta.field.declaration.tsx meta.type.annotation.tsx | ||
^ | ||
source.tsx meta.declaration.object.tsx meta.object.body.tsx meta.field.declaration.tsx meta.type.annotation.tsx entity.name.type.tsx | ||
^^^ | ||
source.tsx meta.declaration.object.tsx meta.object.body.tsx | ||
>} | ||
^ | ||
source.tsx meta.declaration.object.tsx meta.object.body.tsx punctuation.definition.block.tsx | ||
^^ | ||
source.tsx | ||
> | ||
^^ | ||
source.tsx | ||
>interface Props { | ||
^^^^^^^^^ | ||
source.tsx meta.declaration.object.tsx storage.type.interface.tsx | ||
^ | ||
source.tsx meta.declaration.object.tsx | ||
^^^^^ | ||
source.tsx meta.declaration.object.tsx meta.object.name.tsx entity.name.class.tsx | ||
^ | ||
source.tsx meta.declaration.object.tsx | ||
^ | ||
source.tsx meta.declaration.object.tsx meta.object.body.tsx punctuation.definition.block.tsx | ||
^^ | ||
source.tsx meta.declaration.object.tsx meta.object.body.tsx | ||
> prop: Test<T>; | ||
^^^^ | ||
source.tsx meta.declaration.object.tsx meta.object.body.tsx meta.field.declaration.tsx | ||
^^^^ | ||
source.tsx meta.declaration.object.tsx meta.object.body.tsx meta.field.declaration.tsx variable.object.property.tsx | ||
^ | ||
source.tsx meta.declaration.object.tsx meta.object.body.tsx meta.field.declaration.tsx meta.type.annotation.tsx | ||
^ | ||
source.tsx meta.declaration.object.tsx meta.object.body.tsx meta.field.declaration.tsx meta.type.annotation.tsx | ||
^^^^ | ||
source.tsx meta.declaration.object.tsx meta.object.body.tsx meta.field.declaration.tsx meta.type.annotation.tsx meta.type.parameters.tsx entity.name.type.tsx | ||
^ | ||
source.tsx meta.declaration.object.tsx meta.object.body.tsx meta.field.declaration.tsx meta.type.annotation.tsx meta.type.parameters.tsx punctuation.definition.typeparameters.begin.tsx | ||
^ | ||
source.tsx meta.declaration.object.tsx meta.object.body.tsx meta.field.declaration.tsx meta.type.annotation.tsx meta.type.parameters.tsx entity.name.type.tsx | ||
^ | ||
source.tsx meta.declaration.object.tsx meta.object.body.tsx meta.field.declaration.tsx meta.type.annotation.tsx meta.type.parameters.tsx punctuation.definition.typeparameters.end.tsx | ||
^^^ | ||
source.tsx meta.declaration.object.tsx meta.object.body.tsx | ||
>} | ||
^ | ||
source.tsx meta.declaration.object.tsx meta.object.body.tsx punctuation.definition.block.tsx | ||
^^ | ||
source.tsx | ||
> | ||
^^ | ||
source.tsx | ||
>class Whatever { | ||
^^^^^ | ||
source.tsx meta.declaration.object.tsx storage.type.class.tsx | ||
^ | ||
source.tsx meta.declaration.object.tsx | ||
^^^^^^^^ | ||
source.tsx meta.declaration.object.tsx meta.object.name.tsx entity.name.class.tsx | ||
^ | ||
source.tsx meta.declaration.object.tsx | ||
^ | ||
source.tsx meta.declaration.object.tsx meta.object.body.tsx punctuation.definition.block.tsx | ||
^^ | ||
source.tsx meta.declaration.object.tsx meta.object.body.tsx | ||
>} | ||
^ | ||
source.tsx meta.declaration.object.tsx meta.object.body.tsx punctuation.definition.block.tsx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
original file | ||
----------------------------------- | ||
@dec<{}>() | ||
class Test { | ||
} | ||
|
||
----------------------------------- | ||
|
||
>@dec<{}>() | ||
^ | ||
source.tsx meta.decorator.tsx punctuation.decorator.tsx | ||
^^^ | ||
source.tsx meta.decorator.tsx meta.type.parameters.tsx entity.name.type.tsx | ||
^ | ||
source.tsx meta.decorator.tsx meta.type.parameters.tsx punctuation.definition.typeparameters.begin.tsx | ||
^ | ||
source.tsx meta.decorator.tsx meta.type.parameters.tsx meta.object.type.tsx punctuation.definition.block.tsx | ||
^ | ||
source.tsx meta.decorator.tsx meta.type.parameters.tsx meta.object.type.tsx punctuation.definition.block.tsx | ||
^ | ||
source.tsx meta.decorator.tsx meta.type.parameters.tsx punctuation.definition.typeparameters.end.tsx | ||
^ | ||
source.tsx meta.decorator.tsx meta.brace.round.tsx | ||
^ | ||
source.tsx meta.decorator.tsx meta.brace.round.tsx | ||
^^ | ||
source.tsx | ||
>class Test { | ||
^^^^^ | ||
source.tsx meta.declaration.object.tsx storage.type.class.tsx | ||
^ | ||
source.tsx meta.declaration.object.tsx | ||
^^^^ | ||
source.tsx meta.declaration.object.tsx meta.object.name.tsx entity.name.class.tsx | ||
^ | ||
source.tsx meta.declaration.object.tsx | ||
^ | ||
source.tsx meta.declaration.object.tsx meta.object.body.tsx punctuation.definition.block.tsx | ||
^^ | ||
source.tsx meta.declaration.object.tsx meta.object.body.tsx | ||
>} | ||
^ | ||
source.tsx meta.declaration.object.tsx meta.object.body.tsx punctuation.definition.block.tsx | ||
^^ | ||
source.tsx | ||
> | ||
^ | ||
source.tsx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
original file | ||
----------------------------------- | ||
const a = new Array<{}>(); | ||
// syntax highlighting wrong from here on out, due to '{}' | ||
|
||
class Thing { | ||
render() { | ||
|
||
} | ||
} | ||
----------------------------------- | ||
|
||
>const a = new Array<{}>(); | ||
^^^^^ | ||
source.tsx meta.var.expr.tsx storage.type.tsx | ||
^ | ||
source.tsx meta.var.expr.tsx | ||
^ | ||
source.tsx meta.var.expr.tsx meta.var-single-variable.expr.tsx variable.other.readwrite.tsx | ||
^ | ||
source.tsx meta.var.expr.tsx meta.var-single-variable.expr.tsx | ||
^ | ||
source.tsx meta.var.expr.tsx meta.var-single-variable.expr.tsx keyword.operator.assignment.tsx | ||
^ | ||
source.tsx meta.var.expr.tsx meta.var-single-variable.expr.tsx | ||
^^^ | ||
source.tsx meta.var.expr.tsx meta.var-single-variable.expr.tsx new.expr.tsx keyword.operator.new.tsx | ||
^ | ||
source.tsx meta.var.expr.tsx meta.var-single-variable.expr.tsx new.expr.tsx | ||
^^^^^ | ||
source.tsx meta.var.expr.tsx meta.var-single-variable.expr.tsx new.expr.tsx meta.type.parameters.tsx entity.name.type.tsx | ||
^ | ||
source.tsx meta.var.expr.tsx meta.var-single-variable.expr.tsx new.expr.tsx meta.type.parameters.tsx punctuation.definition.typeparameters.begin.tsx | ||
^ | ||
source.tsx meta.var.expr.tsx meta.var-single-variable.expr.tsx new.expr.tsx meta.type.parameters.tsx meta.object.type.tsx punctuation.definition.block.tsx | ||
^ | ||
source.tsx meta.var.expr.tsx meta.var-single-variable.expr.tsx new.expr.tsx meta.type.parameters.tsx meta.object.type.tsx punctuation.definition.block.tsx | ||
^ | ||
source.tsx meta.var.expr.tsx meta.var-single-variable.expr.tsx new.expr.tsx meta.type.parameters.tsx punctuation.definition.typeparameters.end.tsx | ||
^ | ||
source.tsx meta.var.expr.tsx meta.var-single-variable.expr.tsx meta.brace.round.tsx | ||
^ | ||
source.tsx meta.var.expr.tsx meta.var-single-variable.expr.tsx meta.brace.round.tsx | ||
^^^ | ||
source.tsx | ||
>// syntax highlighting wrong from here on out, due to '{}' | ||
^^ | ||
source.tsx comment.line.double-slash.tsx punctuation.definition.comment.tsx | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
source.tsx comment.line.double-slash.tsx | ||
> | ||
^^ | ||
source.tsx | ||
>class Thing { | ||
^^^^^ | ||
source.tsx meta.declaration.object.tsx storage.type.class.tsx | ||
^ | ||
source.tsx meta.declaration.object.tsx | ||
^^^^^ | ||
source.tsx meta.declaration.object.tsx meta.object.name.tsx entity.name.class.tsx | ||
^ | ||
source.tsx meta.declaration.object.tsx | ||
^ | ||
source.tsx meta.declaration.object.tsx meta.object.body.tsx punctuation.definition.block.tsx | ||
^^ | ||
source.tsx meta.declaration.object.tsx meta.object.body.tsx | ||
> render() { | ||
^^^^ | ||
source.tsx meta.declaration.object.tsx meta.object.body.tsx | ||
^^^^^^ | ||
source.tsx meta.declaration.object.tsx meta.object.body.tsx meta.method.declaration.tsx entity.name.function.tsx | ||
^ | ||
source.tsx meta.declaration.object.tsx meta.object.body.tsx meta.method.declaration.tsx meta.parameters.tsx punctuation.definition.parameters.begin.tsx | ||
^ | ||
source.tsx meta.declaration.object.tsx meta.object.body.tsx meta.method.declaration.tsx meta.parameters.tsx punctuation.definition.parameters.end.tsx | ||
^ | ||
source.tsx meta.declaration.object.tsx meta.object.body.tsx meta.method.declaration.tsx | ||
^ | ||
source.tsx meta.declaration.object.tsx meta.object.body.tsx meta.method.declaration.tsx meta.block.tsx punctuation.definition.block.tsx | ||
^^ | ||
source.tsx meta.declaration.object.tsx meta.object.body.tsx meta.method.declaration.tsx meta.block.tsx | ||
> | ||
^^ | ||
source.tsx meta.declaration.object.tsx meta.object.body.tsx meta.method.declaration.tsx meta.block.tsx | ||
> } | ||
^^^^ | ||
source.tsx meta.declaration.object.tsx meta.object.body.tsx meta.method.declaration.tsx meta.block.tsx | ||
^ | ||
source.tsx meta.declaration.object.tsx meta.object.body.tsx meta.method.declaration.tsx meta.block.tsx punctuation.definition.block.tsx | ||
^^ | ||
source.tsx meta.declaration.object.tsx meta.object.body.tsx | ||
>} | ||
^ | ||
source.tsx meta.declaration.object.tsx meta.object.body.tsx punctuation.definition.block.tsx |
Oops, something went wrong.