提交 593efb9b 编写于 作者: A Alex Dima

Fixes Microsoft/monaco-editor#412: Fix comparison to cover also empty strings

上级 0a6a94a1
......@@ -755,7 +755,7 @@ export class MonarchTokenizer implements modes.ITokenizationSupport {
tokensCollector.emit(pos0 + offsetDelta, tokenType);
}
if (enteringEmbeddedMode) {
if (enteringEmbeddedMode !== null) {
// substitute language alias to known modes to support syntax highlighting
let enteringEmbeddedModeId = this._modeService.getModeIdForLanguageName(enteringEmbeddedMode);
if (enteringEmbeddedModeId) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册