2017-12-09 00:18:12 +03:00
|
|
|
original file
|
|
|
|
-----------------------------------
|
2018-04-28 01:41:21 +03:00
|
|
|
function foo(x, y){
|
|
|
|
if(x < y || (x > (y))){
|
|
|
|
}
|
|
|
|
return 'of the jedi';
|
2017-12-09 00:18:12 +03:00
|
|
|
}
|
|
|
|
-----------------------------------
|
|
|
|
|
|
|
|
Grammar: TypeScript.tmLanguage
|
|
|
|
-----------------------------------
|
2018-04-28 01:41:21 +03:00
|
|
|
>function foo(x, y){
|
2017-12-09 00:18:12 +03:00
|
|
|
^^^^^^^^
|
|
|
|
source.ts meta.function.ts storage.type.function.ts
|
|
|
|
^
|
|
|
|
source.ts meta.function.ts
|
|
|
|
^^^
|
|
|
|
source.ts meta.function.ts meta.definition.function.ts entity.name.function.ts
|
|
|
|
^
|
|
|
|
source.ts meta.function.ts meta.parameters.ts punctuation.definition.parameters.begin.ts
|
|
|
|
^
|
|
|
|
source.ts meta.function.ts meta.parameters.ts variable.parameter.ts
|
|
|
|
^
|
|
|
|
source.ts meta.function.ts meta.parameters.ts punctuation.separator.parameter.ts
|
|
|
|
^
|
|
|
|
source.ts meta.function.ts meta.parameters.ts
|
|
|
|
^
|
|
|
|
source.ts meta.function.ts meta.parameters.ts variable.parameter.ts
|
|
|
|
^
|
|
|
|
source.ts meta.function.ts meta.parameters.ts punctuation.definition.parameters.end.ts
|
|
|
|
^
|
|
|
|
source.ts meta.function.ts meta.block.ts punctuation.definition.block.ts
|
2018-04-28 01:41:21 +03:00
|
|
|
> if(x < y || (x > (y))){
|
2017-12-09 00:18:12 +03:00
|
|
|
^^^^
|
|
|
|
source.ts meta.function.ts meta.block.ts
|
|
|
|
^^
|
|
|
|
source.ts meta.function.ts meta.block.ts keyword.control.conditional.ts
|
|
|
|
^
|
|
|
|
source.ts meta.function.ts meta.block.ts meta.brace.round.ts
|
|
|
|
^
|
|
|
|
source.ts meta.function.ts meta.block.ts variable.other.readwrite.ts
|
|
|
|
^
|
|
|
|
source.ts meta.function.ts meta.block.ts
|
|
|
|
^
|
|
|
|
source.ts meta.function.ts meta.block.ts keyword.operator.relational.ts
|
|
|
|
^
|
|
|
|
source.ts meta.function.ts meta.block.ts
|
|
|
|
^
|
|
|
|
source.ts meta.function.ts meta.block.ts variable.other.readwrite.ts
|
|
|
|
^
|
|
|
|
source.ts meta.function.ts meta.block.ts
|
|
|
|
^^
|
|
|
|
source.ts meta.function.ts meta.block.ts keyword.operator.logical.ts
|
|
|
|
^
|
|
|
|
source.ts meta.function.ts meta.block.ts
|
|
|
|
^
|
|
|
|
source.ts meta.function.ts meta.block.ts meta.brace.round.ts
|
|
|
|
^
|
|
|
|
source.ts meta.function.ts meta.block.ts variable.other.readwrite.ts
|
|
|
|
^
|
|
|
|
source.ts meta.function.ts meta.block.ts
|
|
|
|
^
|
|
|
|
source.ts meta.function.ts meta.block.ts keyword.operator.relational.ts
|
|
|
|
^
|
|
|
|
source.ts meta.function.ts meta.block.ts
|
|
|
|
^
|
|
|
|
source.ts meta.function.ts meta.block.ts meta.brace.round.ts
|
|
|
|
^
|
|
|
|
source.ts meta.function.ts meta.block.ts variable.other.readwrite.ts
|
|
|
|
^
|
|
|
|
source.ts meta.function.ts meta.block.ts meta.brace.round.ts
|
|
|
|
^
|
|
|
|
source.ts meta.function.ts meta.block.ts meta.brace.round.ts
|
|
|
|
^
|
|
|
|
source.ts meta.function.ts meta.block.ts meta.brace.round.ts
|
|
|
|
^
|
|
|
|
source.ts meta.function.ts meta.block.ts meta.block.ts punctuation.definition.block.ts
|
2018-04-28 01:41:21 +03:00
|
|
|
> }
|
2017-12-09 00:18:12 +03:00
|
|
|
^^^^
|
|
|
|
source.ts meta.function.ts meta.block.ts meta.block.ts
|
|
|
|
^
|
|
|
|
source.ts meta.function.ts meta.block.ts meta.block.ts punctuation.definition.block.ts
|
2018-04-28 01:41:21 +03:00
|
|
|
> return 'of the jedi';
|
2017-12-09 00:18:12 +03:00
|
|
|
^^^^
|
|
|
|
source.ts meta.function.ts meta.block.ts
|
|
|
|
^^^^^^
|
|
|
|
source.ts meta.function.ts meta.block.ts keyword.control.flow.ts
|
|
|
|
^
|
|
|
|
source.ts meta.function.ts meta.block.ts
|
|
|
|
^
|
|
|
|
source.ts meta.function.ts meta.block.ts string.quoted.single.ts punctuation.definition.string.begin.ts
|
|
|
|
^^^^^^^^^^^
|
|
|
|
source.ts meta.function.ts meta.block.ts string.quoted.single.ts
|
|
|
|
^
|
|
|
|
source.ts meta.function.ts meta.block.ts string.quoted.single.ts punctuation.definition.string.end.ts
|
|
|
|
^
|
|
|
|
source.ts meta.function.ts meta.block.ts punctuation.terminator.statement.ts
|
|
|
|
>}
|
|
|
|
^
|
|
|
|
source.ts meta.function.ts meta.block.ts punctuation.definition.block.ts
|