提交 c0bd80f7 编写于 作者: A Alex Dima

More TS 2.4

上级 1ddc7d4e
......@@ -615,11 +615,12 @@ export class MonarchTokenizer implements modes.ITokenizationSupport {
} else if (action.group) {
result = action.group;
} else if (action.token !== null && action.token !== undefined) {
result = action.token;
// do $n replacements?
if (action.tokenSubst) {
result = monarchCommon.substituteMatches(this._lexer, result, matched, matches, state);
result = monarchCommon.substituteMatches(this._lexer, action.token, matched, matches, state);
} else {
result = action.token;
}
// enter embedded mode?
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册