You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
7 lines
164 KiB
7 lines
164 KiB
5 years ago
|
/*!-----------------------------------------------------------------------------
|
||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
* monaco-html version: 2.2.0(70020ec3be15f92a794f5d2c47ae195a7da63a75)
|
||
|
* Released under the MIT license
|
||
|
* https://github.com/Microsoft/monaco-html/blob/master/LICENSE.md
|
||
|
*-----------------------------------------------------------------------------*/
|
||
|
define("vscode-nls/vscode-nls",["require","exports"],function(e,t){"use strict";function n(e,t){for(var n,r,i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];return n=t,0===(r=i).length?n:n.replace(/\{(\d+)\}/g,function(e,t){var n=t[0];return void 0!==r[n]?r[n]:e})}function r(e){return n}Object.defineProperty(t,"__esModule",{value:!0}),t.loadMessageBundle=r,t.config=function(e){return r}}),define("vscode-nls",["vscode-nls/vscode-nls"],function(e){return e}),function(e){if("object"==typeof module&&"object"==typeof module.exports){var t=e(require,exports);void 0!==t&&(module.exports=t)}else"function"==typeof define&&define.amd&&define("vscode-html-languageservice/htmlLanguageTypes",["require","exports"],e)}(function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),(n=t.TokenType||(t.TokenType={}))[n.StartCommentTag=0]="StartCommentTag",n[n.Comment=1]="Comment",n[n.EndCommentTag=2]="EndCommentTag",n[n.StartTagOpen=3]="StartTagOpen",n[n.StartTagClose=4]="StartTagClose",n[n.StartTagSelfClose=5]="StartTagSelfClose",n[n.StartTag=6]="StartTag",n[n.EndTagOpen=7]="EndTagOpen",n[n.EndTagClose=8]="EndTagClose",n[n.EndTag=9]="EndTag",n[n.DelimiterAssign=10]="DelimiterAssign",n[n.AttributeName=11]="AttributeName",n[n.AttributeValue=12]="AttributeValue",n[n.StartDoctypeTag=13]="StartDoctypeTag",n[n.Doctype=14]="Doctype",n[n.EndDoctypeTag=15]="EndDoctypeTag",n[n.Content=16]="Content",n[n.Whitespace=17]="Whitespace",n[n.Unknown=18]="Unknown",n[n.Script=19]="Script",n[n.Styles=20]="Styles",n[n.EOS=21]="EOS",(r=t.ScannerState||(t.ScannerState={}))[r.WithinContent=0]="WithinContent",r[r.AfterOpeningStartTag=1]="AfterOpeningStartTag",r[r.AfterOpeningEndTag=2]="AfterOpeningEndTag",r[r.WithinDoctype=3]="WithinDoctype",r[r.WithinTag=4]="WithinTag",r[r.WithinEndTag=5]="WithinEndTag",r[r.WithinComment=6]="WithinComment",r[r.WithinScriptContent=7]="WithinScriptContent",r[r.WithinStyleContent=8]="WithinStyleContent",r[r.AfterAttributeName=9]="AfterAttributeName",r[r.BeforeAttributeValue=10]="BeforeAttributeValue"}),function(e){if("object"==typeof module&&"object"==typeof module.exports){var t=e(require,exports);void 0!==t&&(module.exports=t)}else"function"==typeof define&&define.amd&&define("vscode-html-languageservice/parser/htmlScanner",["require","exports","vscode-nls","../htmlLanguageTypes"],e)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("vscode-nls"),m=e("../htmlLanguageTypes"),b=n.loadMessageBundle(),o=function(){function e(e,t){this.source=e,this.len=e.length,this.position=t}return e.prototype.eos=function(){return this.len<=this.position},e.prototype.getSource=function(){return this.source},e.prototype.pos=function(){return this.position},e.prototype.goBackTo=function(e){this.position=e},e.prototype.goBack=function(e){this.position-=e},e.prototype.advance=function(e){this.position+=e},e.prototype.goToEnd=function(){this.position=this.source.length},e.prototype.nextChar=function(){return this.source.charCodeAt(this.position++)||0},e.prototype.peekChar=function(e){return void 0===e&&(e=0),this.source.charCodeAt(this.position+e)||0},e.prototype.advanceIfChar=function(e){return e===this.source.charCodeAt(this.position)&&(this.position++,!0)},e.prototype.advanceIfChars=function(e){var t;if(this.position+e.length>this.source.length)return!1;for(t=0;t<e.length;t++)if(this.source.charCodeAt(this.position+t)!==e[t])return!1;return this.advance(t),!0},e.prototype.advanceIfRegExp=function(e){var t=this.source.substr(this.position).match(e);return t?(this.position=this.position+t.index+t[0].length,t[0]):""},e.prototype.advanceUntilRegExp=function(e){var t=this.source.substr(this.position).match(e);return t?(this.position=this.position+t.index,t[0]):(this.goToEnd(),"")},e.prototype.advanceUntilChar=function(e){for(;this.position<this.source.length;){if(this.source.charCodeAt(this.position)===e)return!0;this.advance(1)}return!1},e.prototype.advanceUntilChars=function(e){for(;this.position+e.length<=this.source.length;){for(var t=0;t<e.length&&this.source.charCodeAt(this.position+t)===e
|