Skip to content

Commit

Permalink
Fixes #76753
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdima committed Jul 29, 2019
1 parent af4bfe6 commit e4b4c17
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/vs/editor/standalone/common/monarch/monarchLexer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,11 @@ export class MonarchTokenizer implements modes.ITokenizationSupport {
return null;
}

if (mimetypeOrModeId === this._modeId) {
// embedding myself...
return mimetypeOrModeId;
}

let modeId = this._modeService.getModeId(mimetypeOrModeId);

if (modeId) {
Expand Down

0 comments on commit e4b4c17

Please sign in to comment.