big-moving.ru/api/soft/monako/min/vs/language/css/cssWorker.js

7 lines
596 KiB
JavaScript
Raw Normal View History

2022-06-24 15:29:23 +05:00
/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* monaco-css version: 2.5.0(19554e0f06b7e77411e8580745815248e3a06b58)
* Released under the MIT license
* https://github.com/Microsoft/monaco-css/blob/master/LICENSE.md
*-----------------------------------------------------------------------------*/
!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-css-languageservice/parser/cssScanner",["require","exports"],e)}(function(e,t){"use strict";var a,n;Object.defineProperty(t,"__esModule",{value:!0}),(n=a=t.TokenType||(t.TokenType={}))[n.Ident=0]="Ident",n[n.AtKeyword=1]="AtKeyword",n[n.String=2]="String",n[n.BadString=3]="BadString",n[n.UnquotedString=4]="UnquotedString",n[n.Hash=5]="Hash",n[n.Num=6]="Num",n[n.Percentage=7]="Percentage",n[n.Dimension=8]="Dimension",n[n.UnicodeRange=9]="UnicodeRange",n[n.CDO=10]="CDO",n[n.CDC=11]="CDC",n[n.Colon=12]="Colon",n[n.SemiColon=13]="SemiColon",n[n.CurlyL=14]="CurlyL",n[n.CurlyR=15]="CurlyR",n[n.ParenthesisL=16]="ParenthesisL",n[n.ParenthesisR=17]="ParenthesisR",n[n.BracketL=18]="BracketL",n[n.BracketR=19]="BracketR",n[n.Whitespace=20]="Whitespace",n[n.Includes=21]="Includes",n[n.Dashmatch=22]="Dashmatch",n[n.SubstringOperator=23]="SubstringOperator",n[n.PrefixOperator=24]="PrefixOperator",n[n.SuffixOperator=25]="SuffixOperator",n[n.Delim=26]="Delim",n[n.EMS=27]="EMS",n[n.EXS=28]="EXS",n[n.Length=29]="Length",n[n.Angle=30]="Angle",n[n.Time=31]="Time",n[n.Freq=32]="Freq",n[n.Exclamation=33]="Exclamation",n[n.Resolution=34]="Resolution",n[n.Comma=35]="Comma",n[n.Charset=36]="Charset",n[n.EscapedJavaScript=37]="EscapedJavaScript",n[n.BadEscapedJavaScript=38]="BadEscapedJavaScript",n[n.Comment=39]="Comment",n[n.SingleLineComment=40]="SingleLineComment",n[n.EOF=41]="EOF",n[n.CustomToken=42]="CustomToken";var i=function(){function e(e){this.source=e,this.len=e.length,this.position=0}return e.prototype.substring=function(e,t){return void 0===t&&(t=this.position),this.source.substring(e,t)},e.prototype.eos=function(){return this.len<=this.position},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.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.lookbackChar=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){if(this.position+e.length>this.source.length)return!1;for(var t=0;t<e.length;t++)if(this.source.charCodeAt(this.position+t)!==e[t])return!1;return this.advance(t),!0},e.prototype.advanceWhileChar=function(e){for(var t=this.position;this.position<this.len&&e(this.source.charCodeAt(this.position));)this.position++;return this.position-t},e}();t.MultiLineStream=i;var o="a".charCodeAt(0),s="f".charCodeAt(0),r="z".charCodeAt(0),l="A".charCodeAt(0),c="F".charCodeAt(0),d="Z".charCodeAt(0),p="0".charCodeAt(0),h="9".charCodeAt(0),m="~".charCodeAt(0),u="^".charCodeAt(0),f="=".charCodeAt(0),g="|".charCodeAt(0),b="-".charCodeAt(0),y="_".charCodeAt(0),v="%".charCodeAt(0),w="*".charCodeAt(0),x="(".charCodeAt(0),k=")".charCodeAt(0),S="<".charCodeAt(0),T=">".charCodeAt(0),C="@".charCodeAt(0),F="#".charCodeAt(0),E="$".charCodeAt(0),I="\\".charCodeAt(0),P="/".charCodeAt(0),_="\n".charCodeAt(0),A="\r".charCodeAt(0),D="\f".charCodeAt(0),z='"'.charCodeAt(0),R="'".charCodeAt(0),O=" ".charCodeAt(0),N="\t".charCodeAt(0),U=";".charCodeAt(0),M=":".charCodeAt(0),L="{".charCodeAt(0),j="}".charCodeAt(0),V="[".charCodeAt(0),B="]".charCodeAt(0),K=",".charCodeAt(0),q=".".charCodeAt(0),$="!".charCodeAt(0),W={};W[U]=a.SemiColon,W[M]=a.Colon,W[L]=a.CurlyL,W[j]=a.CurlyR,W[B]=a.BracketR,W[V]=a.BracketL,W[x]=a.ParenthesisL,W[k]=a.ParenthesisR,W[K]=a.Comma;var G={};G.em=a.EMS,G.ex=a.EXS,G.px=a.Length,G.cm=a.Length,G.mm=a.Length,G.in=a.Length,G.pt=a.Length,G.pc=a.Length,G.deg=a.Angle,G.rad=a.Angle,G.grad=a.Angle,G.ms=a.Time,G.s=a.Time,G.hz=a.Freq,G.khz=a.Freq,G["%"]=a.Percentage,G.fr=a.Percentage,G.dpi=a.Resolution,G.dpc