7 lines
337 KiB
JavaScript
7 lines
337 KiB
JavaScript
|
/*!-----------------------------------------------------------------------------
|
||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
* monaco-html version: 2.5.2(19e24b67beebe862bdc640bb0809aeb3e48c76ca)
|
||
|
* 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,i,r=[],a=2;a<arguments.length;a++)r[a-2]=arguments[a];return n=t,0===(i=r).length?n:n.replace(/\{(\d+)\}/g,function(e,t){var n=t[0];return void 0!==i[n]?i[n]:e})}function i(e){return n}Object.defineProperty(t,"__esModule",{value:!0}),t.loadMessageBundle=i,t.config=function(e){return i}}),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,i,r;Object.defineProperty(t,"__esModule",{value:!0}),(n=t.SelectionRangeKind||(t.SelectionRangeKind={})).Empty="",n.Statement="statement",n.Declaration="declaration",(i=t.TokenType||(t.TokenType={}))[i.StartCommentTag=0]="StartCommentTag",i[i.Comment=1]="Comment",i[i.EndCommentTag=2]="EndCommentTag",i[i.StartTagOpen=3]="StartTagOpen",i[i.StartTagClose=4]="StartTagClose",i[i.StartTagSelfClose=5]="StartTagSelfClose",i[i.StartTag=6]="StartTag",i[i.EndTagOpen=7]="EndTagOpen",i[i.EndTagClose=8]="EndTagClose",i[i.EndTag=9]="EndTag",i[i.DelimiterAssign=10]="DelimiterAssign",i[i.AttributeName=11]="AttributeName",i[i.AttributeValue=12]="AttributeValue",i[i.StartDoctypeTag=13]="StartDoctypeTag",i[i.Doctype=14]="Doctype",i[i.EndDoctypeTag=15]="EndDoctypeTag",i[i.Content=16]="Content",i[i.Whitespace=17]="Whitespace",i[i.Unknown=18]="Unknown",i[i.Script=19]="Script",i[i.Styles=20]="Styles",i[i.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"),g=e("../htmlLanguageTypes"),_=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){fo
|