original file ----------------------------------- const trim = module.exports = str => trim.trailing(trim.leading(str)); const trim = module.exports = function(str) { return trim.trailing(trim.leading(str)); } ----------------------------------- Grammar: TypeScript.tmLanguage ----------------------------------- >const trim = module.exports = str => trim.trailing(trim.leading(str)); ^^^^^ 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 meta.definition.variable.ts variable.other.constant.ts ^ source.ts meta.var.expr.ts meta.var-single-variable.expr.ts ^ source.ts meta.var.expr.ts keyword.operator.assignment.ts ^ source.ts meta.var.expr.ts ^^^^^^ source.ts meta.var.expr.ts support.type.object.module.ts ^ source.ts meta.var.expr.ts punctuation.accessor.ts ^^^^^^^ source.ts meta.var.expr.ts support.type.object.module.ts ^ source.ts meta.var.expr.ts ^ source.ts meta.var.expr.ts keyword.operator.assignment.ts ^ source.ts meta.var.expr.ts ^^^ source.ts meta.var.expr.ts meta.arrow.ts variable.parameter.ts ^ source.ts meta.var.expr.ts meta.arrow.ts ^^ source.ts meta.var.expr.ts meta.arrow.ts storage.type.function.arrow.ts ^ source.ts meta.var.expr.ts meta.arrow.ts ^^^^ source.ts meta.var.expr.ts meta.function-call.ts variable.other.object.ts ^ source.ts meta.var.expr.ts meta.function-call.ts punctuation.accessor.ts ^^^^^^^^ source.ts meta.var.expr.ts meta.function-call.ts entity.name.function.ts ^ source.ts meta.var.expr.ts meta.brace.round.ts ^^^^ source.ts meta.var.expr.ts meta.function-call.ts variable.other.object.ts ^ source.ts meta.var.expr.ts meta.function-call.ts punctuation.accessor.ts ^^^^^^^ source.ts meta.var.expr.ts meta.function-call.ts entity.name.function.ts ^ source.ts meta.var.expr.ts meta.brace.round.ts ^^^ source.ts meta.var.expr.ts variable.other.readwrite.ts ^ source.ts meta.var.expr.ts meta.brace.round.ts ^ source.ts meta.var.expr.ts meta.brace.round.ts ^ source.ts punctuation.terminator.statement.ts > ^ source.ts >const trim = module.exports = function(str) { ^^^^^ 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 meta.definition.variable.ts variable.other.constant.ts ^ source.ts meta.var.expr.ts meta.var-single-variable.expr.ts ^ source.ts meta.var.expr.ts keyword.operator.assignment.ts ^ source.ts meta.var.expr.ts ^^^^^^ source.ts meta.var.expr.ts support.type.object.module.ts ^ source.ts meta.var.expr.ts punctuation.accessor.ts ^^^^^^^ source.ts meta.var.expr.ts support.type.object.module.ts ^ source.ts meta.var.expr.ts ^ source.ts meta.var.expr.ts keyword.operator.assignment.ts ^ source.ts meta.var.expr.ts ^^^^^^^^ source.ts meta.var.expr.ts meta.function.expression.ts storage.type.function.ts ^ source.ts meta.var.expr.ts meta.function.expression.ts meta.parameters.ts punctuation.definition.parameters.begin.ts ^^^ source.ts meta.var.expr.ts meta.function.expression.ts meta.parameters.ts variable.parameter.ts ^ source.ts meta.var.expr.ts meta.function.expression.ts meta.parameters.ts punctuation.definition.parameters.end.ts ^ source.ts meta.var.expr.ts meta.function.expression.ts ^ source.ts meta.var.expr.ts meta.function.expression.ts meta.block.ts punctuation.definition.block.ts > return trim.trailing(trim.leading(str)); ^^^^ source.ts meta.var.expr.ts meta.function.expression.ts meta.block.ts ^^^^^^ source.ts meta.var.expr.ts meta.function.expression.ts meta.block.ts keyword.control.flow.ts ^^ source.ts meta.var.expr.ts meta.function.expression.ts meta.block.ts ^^^^ source.ts meta.var.expr.ts meta.function.expression.ts meta.block.ts meta.function-call.ts variable.other.object.ts ^ source.ts meta.var.expr.ts meta.function.expression.ts meta.block.ts meta.function-call.ts punctuation.accessor.ts ^^^^^^^^ source.ts meta.var.expr.ts meta.function.expression.ts meta.block.ts meta.function-call.ts entity.name.function.ts ^ source.ts meta.var.expr.ts meta.function.expression.ts meta.block.ts meta.brace.round.ts ^^^^ source.ts meta.var.expr.ts meta.function.expression.ts meta.block.ts meta.function-call.ts variable.other.object.ts ^ source.ts meta.var.expr.ts meta.function.expression.ts meta.block.ts meta.function-call.ts punctuation.accessor.ts ^^^^^^^ source.ts meta.var.expr.ts meta.function.expression.ts meta.block.ts meta.function-call.ts entity.name.function.ts ^ source.ts meta.var.expr.ts meta.function.expression.ts meta.block.ts meta.brace.round.ts ^^^ source.ts meta.var.expr.ts meta.function.expression.ts meta.block.ts variable.other.readwrite.ts ^ source.ts meta.var.expr.ts meta.function.expression.ts meta.block.ts meta.brace.round.ts ^ source.ts meta.var.expr.ts meta.function.expression.ts meta.block.ts meta.brace.round.ts ^ source.ts meta.var.expr.ts meta.function.expression.ts meta.block.ts punctuation.terminator.statement.ts >} ^ source.ts meta.var.expr.ts meta.function.expression.ts meta.block.ts punctuation.definition.block.ts