TypeScript-TmLanguage/tests/baselines/Issue155.baseline.txt

322 строки
24 KiB
Plaintext

original file
-----------------------------------
matchQuery.find().then(function (results) {
for (i=0;i<results.length;i++){
notificationQuery.find().then(function (notifications){
var j;
for (j=0;j<notifications.length;j++){
console.log('safeDeleteRoute notification result'+j);
notifications[j].destroy();
}
res.destroy();
});
}
},function(error){
alert("Error: "+error.code + " " + error.message);
});
-----------------------------------
Grammar: TypeScript.tmLanguage
-----------------------------------
>matchQuery.find().then(function (results) {
^^^^^^^^^^
source.ts meta.function-call.ts variable.other.object.ts
^
source.ts meta.function-call.ts punctuation.accessor.ts
^^^^
source.ts meta.function-call.ts support.function.ts
^
source.ts meta.brace.round.ts
^
source.ts meta.brace.round.ts
^
source.ts meta.function-call.ts punctuation.accessor.ts
^^^^
source.ts meta.function-call.ts support.function.promise.ts
^
source.ts meta.brace.round.ts
^^^^^^^^
source.ts meta.function.expression.ts storage.type.function.ts
^
source.ts meta.function.expression.ts
^
source.ts meta.function.expression.ts meta.parameters.ts punctuation.definition.parameters.begin.ts
^^^^^^^
source.ts meta.function.expression.ts meta.parameters.ts variable.parameter.ts
^
source.ts meta.function.expression.ts meta.parameters.ts punctuation.definition.parameters.end.ts
^
source.ts meta.function.expression.ts
^
source.ts meta.function.expression.ts meta.block.ts punctuation.definition.block.ts
> for (i=0;i<results.length;i++){
^^^^^^^^
source.ts meta.function.expression.ts meta.block.ts
^^^
source.ts meta.function.expression.ts meta.block.ts keyword.control.loop.ts
^
source.ts meta.function.expression.ts meta.block.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.brace.round.ts
^
source.ts meta.function.expression.ts meta.block.ts variable.other.readwrite.ts
^
source.ts meta.function.expression.ts meta.block.ts keyword.operator.assignment.ts
^
source.ts meta.function.expression.ts meta.block.ts constant.numeric.decimal.ts
^
source.ts meta.function.expression.ts meta.block.ts punctuation.terminator.statement.ts
^
source.ts meta.function.expression.ts meta.block.ts variable.other.readwrite.ts
^
source.ts meta.function.expression.ts meta.block.ts keyword.operator.relational.ts
^^^^^^^
source.ts meta.function.expression.ts meta.block.ts variable.other.object.ts
^
source.ts meta.function.expression.ts meta.block.ts punctuation.accessor.ts
^^^^^^
source.ts meta.function.expression.ts meta.block.ts support.variable.property.ts
^
source.ts meta.function.expression.ts meta.block.ts punctuation.terminator.statement.ts
^
source.ts meta.function.expression.ts meta.block.ts variable.other.readwrite.ts
^^
source.ts meta.function.expression.ts meta.block.ts keyword.operator.increment.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.brace.round.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts punctuation.definition.block.ts
> notificationQuery.find().then(function (notifications){
^^^^^^^^^^^^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts
^^^^^^^^^^^^^^^^^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function-call.ts variable.other.object.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function-call.ts punctuation.accessor.ts
^^^^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function-call.ts support.function.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.brace.round.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.brace.round.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function-call.ts punctuation.accessor.ts
^^^^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function-call.ts support.function.promise.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.brace.round.ts
^^^^^^^^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts storage.type.function.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.parameters.ts punctuation.definition.parameters.begin.ts
^^^^^^^^^^^^^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.parameters.ts variable.parameter.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.parameters.ts punctuation.definition.parameters.end.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts punctuation.definition.block.ts
> var j;
^^^^^^^^^^^^^^^^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts
^^^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts meta.var.expr.ts storage.type.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts meta.var.expr.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.definition.variable.ts variable.other.readwrite.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts punctuation.terminator.statement.ts
> for (j=0;j<notifications.length;j++){
^^^^^^^^^^^^^^^^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts
^^^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts keyword.control.loop.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts meta.brace.round.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts variable.other.readwrite.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts keyword.operator.assignment.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts constant.numeric.decimal.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts punctuation.terminator.statement.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts variable.other.readwrite.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts keyword.operator.relational.ts
^^^^^^^^^^^^^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts variable.other.object.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts punctuation.accessor.ts
^^^^^^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts support.variable.property.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts punctuation.terminator.statement.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts variable.other.readwrite.ts
^^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts keyword.operator.increment.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts meta.brace.round.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts meta.block.ts punctuation.definition.block.ts
> console.log('safeDeleteRoute notification result'+j);
^^^^^^^^^^^^^^^^^^^^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts meta.block.ts
^^^^^^^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function-call.ts support.class.console.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function-call.ts punctuation.accessor.ts
^^^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function-call.ts support.function.console.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.brace.round.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts meta.block.ts string.quoted.single.ts punctuation.definition.string.begin.ts
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts meta.block.ts string.quoted.single.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts meta.block.ts string.quoted.single.ts punctuation.definition.string.end.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts meta.block.ts keyword.operator.arithmetic.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts meta.block.ts variable.other.readwrite.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.brace.round.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts meta.block.ts punctuation.terminator.statement.ts
> notifications[j].destroy();
^^^^^^^^^^^^^^^^^^^^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts meta.block.ts
^^^^^^^^^^^^^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts meta.block.ts variable.other.readwrite.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.array.literal.ts meta.brace.square.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.array.literal.ts variable.other.readwrite.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.array.literal.ts meta.brace.square.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function-call.ts punctuation.accessor.ts
^^^^^^^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function-call.ts entity.name.function.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.brace.round.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.brace.round.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts meta.block.ts punctuation.terminator.statement.ts
> }
^^^^^^^^^^^^^^^^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts meta.block.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts meta.block.ts punctuation.definition.block.ts
> res.destroy();
^^^^^^^^^^^^^^^^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts
^^^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts meta.function-call.ts variable.other.object.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts meta.function-call.ts punctuation.accessor.ts
^^^^^^^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts meta.function-call.ts entity.name.function.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts meta.brace.round.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts meta.brace.round.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts punctuation.terminator.statement.ts
> });
^^^^^^^^^^^^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.function.expression.ts meta.block.ts punctuation.definition.block.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts meta.brace.round.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts punctuation.terminator.statement.ts
> }
^^^^^^^^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.block.ts punctuation.definition.block.ts
> },function(error){
^^^^
source.ts meta.function.expression.ts meta.block.ts
^
source.ts meta.function.expression.ts meta.block.ts punctuation.definition.block.ts
^
source.ts punctuation.separator.comma.ts
^^^^^^^^
source.ts meta.function.expression.ts storage.type.function.ts
^
source.ts meta.function.expression.ts meta.parameters.ts punctuation.definition.parameters.begin.ts
^^^^^
source.ts meta.function.expression.ts meta.parameters.ts variable.parameter.ts
^
source.ts meta.function.expression.ts meta.parameters.ts punctuation.definition.parameters.end.ts
^
source.ts meta.function.expression.ts meta.block.ts punctuation.definition.block.ts
> alert("Error: "+error.code + " " + error.message);
^^^^^^^^
source.ts meta.function.expression.ts meta.block.ts
^^^^^
source.ts meta.function.expression.ts meta.block.ts meta.function-call.ts entity.name.function.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.brace.round.ts
^
source.ts meta.function.expression.ts meta.block.ts string.quoted.double.ts punctuation.definition.string.begin.ts
^^^^^^^
source.ts meta.function.expression.ts meta.block.ts string.quoted.double.ts
^
source.ts meta.function.expression.ts meta.block.ts string.quoted.double.ts punctuation.definition.string.end.ts
^
source.ts meta.function.expression.ts meta.block.ts keyword.operator.arithmetic.ts
^^^^^
source.ts meta.function.expression.ts meta.block.ts variable.other.object.ts
^
source.ts meta.function.expression.ts meta.block.ts punctuation.accessor.ts
^^^^
source.ts meta.function.expression.ts meta.block.ts support.variable.property.dom.ts
^
source.ts meta.function.expression.ts meta.block.ts
^
source.ts meta.function.expression.ts meta.block.ts keyword.operator.arithmetic.ts
^
source.ts meta.function.expression.ts meta.block.ts
^
source.ts meta.function.expression.ts meta.block.ts string.quoted.double.ts punctuation.definition.string.begin.ts
^
source.ts meta.function.expression.ts meta.block.ts string.quoted.double.ts
^
source.ts meta.function.expression.ts meta.block.ts string.quoted.double.ts punctuation.definition.string.end.ts
^
source.ts meta.function.expression.ts meta.block.ts
^
source.ts meta.function.expression.ts meta.block.ts keyword.operator.arithmetic.ts
^
source.ts meta.function.expression.ts meta.block.ts
^^^^^
source.ts meta.function.expression.ts meta.block.ts variable.other.object.ts
^
source.ts meta.function.expression.ts meta.block.ts punctuation.accessor.ts
^^^^^^^
source.ts meta.function.expression.ts meta.block.ts variable.other.property.ts
^
source.ts meta.function.expression.ts meta.block.ts meta.brace.round.ts
^
source.ts meta.function.expression.ts meta.block.ts punctuation.terminator.statement.ts
> });
^^^^
source.ts meta.function.expression.ts meta.block.ts
^
source.ts meta.function.expression.ts meta.block.ts punctuation.definition.block.ts
^
source.ts meta.brace.round.ts
^
source.ts punctuation.terminator.statement.ts