forked from senx/VSCode-WarpScriptLanguage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
prism-warpscript.js
29 lines (29 loc) · 9.85 KB
/
prism-warpscript.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
"comment": [
{
"pattern": {},
"lookbehind": true
},
{
"pattern": {},
"lookbehind": true,
"greedy": true
}
],
"string": {
"pattern": {},
"greedy": true
},
"class-name": {
"pattern": {},
"inside": {
"punctuation": {}
}
},
"keyword": "\b(?:->LONGBYTES|PtoImage|TIMED|CHRONOSTATS|CHRONOSTART|CHRONOEND|URLFETCH|MAXURLFETCHSIZE|MAXURLFETCHCOUNT|WF\\.SETREPOS|WF\\.GETREPOS|WF\\.ADDREPO|UPDATEON|UPDATEOFF|TOKENSECRET|TIMEBOX|METAON|METAOFF|IMPORT|DELETEON|DELETEOFF|filler\\.trend|filler\\.previous|filler\\.next|filler\\.interpolate|VARS|TOKENGEN|TOKENDUMP|TIMEON|TIMEOFF|SHMSTORE|SHMLOAD|PSTACK|PEEKN|PEEK|NPEEK|MUTEX|MACROFILLER|LASTACTIVITY|WSSTACK|JSONSTACK|FILL|ECHOON|ECHOOFF|PUSHR|POPR|CPOPR|CLEARREGS|ASREGS|LOGEVENT->|TOINTEXACT|SUBTRACTEXACT|SCALB|RANDOM|NEXTDOWN|NEGATEEXACT|MULTIPLYEXACT|INCREMENTEXACT|GETEXPONENT|FLOORMOD|FLOORDIV|DECREMENTEXACT|ADDEXACT|SQLEXEC|SENSISION\\.DUMPEVENTS|SENSISION\\.DUMP|SENSISION\\.UPDATE|SENSISION\\.SET|SENSISION\\.GET|SENSISION\\.EVENT|PMMLLOAD|PMMLEVAL|HLOCATE|GROUPBY|FUNCTIONS|FILTERBY|COUNTERSET|TDESCRIBE|STDOUT|STDERR|NOLOG|LOGMSG|REMOVETICK|reducer\\.rms.exclude-nulls|reducer\\.rms|mapper\\.rms|bucketizer\\.rms|PshapeMode|Pshape|PloadShape|MAN|ZSCORETEST|ZSCORE|ZPATTERNS|ZPATTERNDETECTION|ZIP|ZDTW|ZDISCORDS|WRAPRAWOPT|WRAPRAW|WRAPOPT|WRAP|WHILE|WEBCALL|VALUESPLIT|VALUESORT|VALUES|VALUELIST|VALUEHISTOGRAM|VALUEDEDUP|UUID|us|URLENCODE|URLDECODE|UPDATE|UNWRAPSIZE|UNWRAPENCODER|UNWRAPEMPTY|UNWRAP|UNTIL|UNSECURE|UNPACK|UNMAP|UNLIST|UNIQUE|UNION|UNGZIP|UNBUCKETIZE|ULP|UDF|TYPEOF|TSELEMENTS|TRY|TRIM|TRANSPOSE|TR|TOUPPER|TOTIMESTAMP|TOSTRING|TOSELECTOR|TORADIANS|TOLOWER|TOLONG|TOKENINFO|TOHEX|TODOUBLE|TODEGREES|TOBOOLEAN|TOBITS|TOBIN|TLTTB|TIMINGS|TIMESPLIT|TIMESHIFT|TIMESCALE|TIMEMODULO|TIMECLIP|TICKS|TICKLIST|TICKINDEX|THRESHOLDTEST|TEMPLATE|TANH|TAN|SYNC|SWITCH|SWAP|SUBSTRING|SUBMAP|SUBLIST|STU|STRICTREDUCER|STRICTPARTITION|STRICTMAPPER|STORE|STOP|STLESDTEST|STL|STANDARDIZE|STACKTOLIST|STACKATTRIBUTE|SRAND|SQRT|SPLIT|SORTBY|SORT|SNAPSHOTTOMARK|SNAPSHOTN|SNAPSHOTCOPYTOMARK|SNAPSHOTCOPYN|SNAPSHOTCOPYALLTOMARK|SNAPSHOTCOPYALL|SNAPSHOTCOPY|SNAPSHOTALLTOMARK|SNAPSHOTALL|SNAPSHOT|SMARTPARSE|SKEWNESS|SIZE|SINH|SINGLEEXPONENTIALSMOOTHING|SIN|SIGNUM|SHRINK|SHA256HMAC|SHA256|SHA1HMAC|SHA1|SETVALUE|SETATTRIBUTES|SET|SECUREKEY|SECURE|SECTION|SAVE|RVALUESORT|RUNNERNONCE|RUN|RTFM|RSORT|RSAVERIFY|RSASIGN|RSAPUBLIC|RSAPRIVATE|RSAGEN|RSAENCRYPT|RSADECRYPT|ROUND|ROTATIONQ|ROT|ROLLD|ROLL|RLOWESS|RINT|REXECZ|REXEC|REVERSE|REVBITS|REV|RETURN|RETHROW|RESTORE|RESETS|RESET|REPORT|REPLACEALL|REPLACE|REOPTALT|RENAME|REMOVE|RELABEL|reducer\\.var|reducer\\.var.forbid-nulls|reducer\\.sum|reducer\\.sum.nonnull|reducer\\.sum.forbid-nulls|reducer\\.shannonentropy.1|reducer\\.shannonentropy.0|reducer\\.sd|reducer\\.sd.forbid-nulls|reducer\\.product|reducer\\.percentile|reducer\\.or|reducer\\.or.exclude-nulls|reducer\\.min|reducer\\.min.nonnull|reducer\\.min.forbid-nulls|reducer\\.median|reducer\\.mean|reducer\\.mean.exclude-nulls|reducer\\.mean.circular|reducer\\.mean.circular.exclude-nulls|reducer\\.max|reducer\\.max.nonnull|reducer\\.max.forbid-nulls|reducer\\.mad|reducer\\.join|reducer\\.join.urlencoded|reducer\\.join.nonnull|reducer\\.join.forbid-nulls|reducer\\.count|reducer\\.count.nonnull|reducer\\.count.include-nulls|reducer\\.count.exclude-nulls|reducer\\.argmin|reducer\\.argmax|reducer\\.and|reducer\\.and.exclude-nulls|REDUCE|REDEFS|RAWDTW|RANGECOMPACT|RANGE|RANDPDF|RAND|pi|QUANTIZE|QROTATION|QROTATE|QMULTIPLY|QDIVIDE|QCONJUGATE|Pvertex|PUT|PupdatePixels|Ptriangle|Ptranslate|Ptint|PtextWidth|PtextSize|PtextMode|PtextLeading|PtextFont|PtextDescent|PtextAscent|PtextAlign|Ptext|PstrokeWeight|PstrokeJoin|PstrokeCap|Pstroke|PsphereDetail|Psphere|PshearY|PshearX|Pset|Pscale|Psaturation|ps|Protate|PROBABILITY|PROB|PRNG|PresetMatrix|PREDUCE|Pred|PrectMode|Prect|PquadraticVertex|Pquad|PpushStyle|PpushMatrix|PpopStyle|PpopMatrix|Ppoint|Ppixels|PnoTint|PnoStroke|Pnorm|PnoFill|PnoClip|Pmap|Pmag|Pline|PlerpColor|Plerp|PimageMode|Pimage|PIGSCHEMA|PICK|Phue|Pgreen|PGraphics|Pget|PFILTER|Pfill|PendShape|PendContour|Pencode|PellipseMode|Pellipse|Pdist|Pdecode|PcurveVertex|PcurveTightness|PcurveTangent|PcurvePoint|PcurveDetail|Pcurve|PcreateFont|Pcopy|Pconstrain|PcolorMode|Pcolor|Pclip|Pclear|Pbrightness|Pbox|Pblue|PblendMode|Pblend|PbezierVertex|PbezierTangent|PbezierPoint|PbezierDetail|Pbezier|PbeginShape|PbeginContour|Pbackground|PATTERNS|PATTERNDETECTION|PARTITION|PARSESELECTOR|PARSE|Parc|PAPPLY|Palpha|PACK|OR|OPTIMIZE|OPTDTW|OPS|OPB64TOHEX|op\\.sub|op\\.or|op\\.or.ignore-nulls|op\\.negmask|op\\.ne|op\\.mul|op\\.mul.ignore-nulls|op\\.mask|op\\.lt|op\\.le|op\\.gt|op\\.ge|op\\.eq|op\\.div|op\\.and|op\\.and.ignore-nulls|op\\.add|op\\.add.ignore-nulls|ONLYBUCKETS|NULL|NSUMSUMSQ|ns|NRETURN|NPDF|NOW|NOTIMINGS|NOTBEFORE|NOTAFTER|NOT|NORMALIZE|NOOP|NONNULL|NONEMPTY|NEXTUP|NEXTAFTER|NEWGTS|NEWENCODER|NDEBUGON|NBOUNDS|NaN|NAME|MUSIGMA|MSTU|MSORT|MSGFAIL|ms|MONOTONIC|MODE|MINREV|MINLONG|MIN|METASORT|METASET|META|MERGE|MD5|MAXSYMBOLS|MAXRECURSION|MAXPIXELS|MAXOPS|MAXLOOP|MAXLONG|MAXGTS|MAXGEOCELLS|MAXDEPTH|MAXBUCKETS|MAX|max\\.time.sliding.window|max\\.tick.sliding.window|MATCHER|MATCH|MARK|mapper\\.year|mapper\\.weekday|mapper\\.vspeed|mapper\\.vdist|mapper\\.var|mapper\\.var.forbid-nulls|mapper\\.truecourse|mapper\\.tostring|mapper\\.tolong|mapper\\.todouble|mapper\\.toboolean|mapper\\.tick|mapper\\.tanh|mapper\\.sum|mapper\\.sum.forbid-nulls|mapper\\.sqrt|mapper\\.sigmoid|mapper\\.second|mapper\\.sd|mapper\\.sd.forbid-nulls|mapper\\.round|mapper\\.replace|mapper\\.rate|mapper\\.product|mapper\\.pow|mapper\\.percentile|mapper\\.parsedouble|mapper\\.or|mapper\\.npdf|mapper\\.ne|mapper\\.mul|mapper\\.month|mapper\\.mod|mapper\\.minute|mapper\\.min|mapper\\.min.x|mapper\\.min.forbid-nulls|mapper\\.median|mapper\\.mean|mapper\\.mean.exclude-nulls|mapper\\.mean.circular|mapper\\.mean.circular.exclude-nulls|mapper\\.max|mapper\\.max.x|mapper\\.max.forbid-nulls|mapper\\.mad|mapper\\.lt|mapper\\.lowest|mapper\\.log|mapper\\.le|mapper\\.last|mapper\\.kernel.uniform|mapper\\.kernel.triweight|mapper\\.kernel.tricube|mapper\\.kernel.triangular|mapper\\.kernel.silverman|mapper\\.kernel.quartic|mapper\\.kernel.logistic|mapper\\.kernel.gaussian|mapper\\.kernel.epanechnikov|mapper\\.kernel.cosine|mapper\\.join|mapper\\.join.forbid-nulls|mapper\\.hspeed|mapper\\.hour|mapper\\.highest|mapper\\.hdist|mapper\\.gt|mapper\\.geo.within|mapper\\.geo.outside|mapper\\.geo.clear|mapper\\.geo.approximate|mapper\\.ge|mapper\\.floor|mapper\\.first|mapper\\.finite|mapper\\.exp|mapper\\.eq|mapper\\.dotproduct|mapper\\.dotproduct.tanh|mapper\\.dotproduct.sigmoid|mapper\\.dotproduct.positive|mapper\\.delta|mapper\\.day|mapper\\.count|mapper\\.count.nonnull|mapper\\.count.include-nulls|mapper\\.count.exclude-nulls|mapper\\.ceil|mapper\\.and|mapper\\.add|mapper\\.abs|MAPID|MAP|MAKEGTS|MACROTTL|MACROREDUCER|MACROMAPPER|MACROFILTER|MACROCONFIGDEFAULT|MACROCONFIG|MACROBUCKETIZER|Z->|LTTB|LSORT|LR|LOWESS|LOG1P|LOG10|LOG|LOCSTRINGS|LOCATIONS|LOCATIONOFFSET|LOAD|LMAP|LINEON|LINEOFF|LIMIT|LFLATMAP|LBOUNDS|LASTTICK|LASTSORT|LASTBUCKET|LABELS|VEC->|V->|KURTOSIS|KEYLIST|TSELEMENTS->|JSONSTRICT|JSONLOOSE|SET->|JOIN|Q->|Pfilter|PI|PICKLE->|ISONORMALIZE|ISODURATION|ISO8601|ISNULL|ISNaN|ISAUTHENTICATED|OPB64->|INV|INTERSECTION|INTERPOLATE|INTEGRATE|INFOMODE|INFO|IMMUTABLE|MAT->|MAP->|IFTE|IFT|IFFT|IEEEREMAINDER|IDWT|IDENT|LIST->|HYPOT|HYBRIDTEST2|HYBRIDTEST|HUMANDURATION|HEXTOBIN|HEXTOB64|HEADER|HAVERSINE|HASH|HHCODE->|HEX->|JSON->|FLOATBITS->|GZIP|GRUBBSTEST|GEOHASH->|ENCODER->|GETSECTION|GETHOOK|GET|GEOUNPACK|GEOPACK|GEO\\.WKT|GEO\\.WKT.UNIFORM|GEO\\.WITHIN|GEO\\.UNION|GEO\\.REGEXP|GEO\\.OPTIMIZE|GEO\\.JSON|GEO\\.JSON.UNIFORM|GEO\\.INTERSECTS|GEO\\.INTERSECTION|GEO\\.DIFFERENCE|DOUBLEBITS->|BIN->|B64URL->|B64->|FUSE|FROMHEX|FROMBITS|FROMBIN|FORSTEP|FORGET|FOREACH|FOR|FLOOR|FLATTEN|FIRSTTICK|FINDSTATS|FINDSETS|FIND|FILTER|filter\\.latencies|filter\\.last.ne|filter\\.last.lt|filter\\.last.le|filter\\.last.gt|filter\\.last.ge|filter\\.last.eq|filter\\.bymetadata|filter\\.bylabelsattr|filter\\.bylabels|filter\\.byclass|filter\\.byattr|FILLVALUE|FILLTICKS|FILLPREVIOUS|FILLNEXT|FFTWINDOW|FFTAP|FFT|FETCHSTRING|FETCHLONG|FETCHDOUBLE|FETCHBOOLEAN|FETCH|FDWT|FAIL|BYTES->|EXTLOADED|EXPORT|EXPM1|EXP|EVERY|EVALSECURE|EVAL|ESDTEST|ERROR|EMPTY|ELEVATIONS|ELAPSED|DWTSPLIT|DURATION|DUPN|DUP|DTW|DROPN|DROP|DOUBLEEXPONENTIALSMOOTHING|DOCMODE|DOC|DISCORDS|DIFFERENCE|DET|DEPTH|DELETE|DEFINEDMACRO|DEFINED|DEF|DEDUP|DEBUGON|DEBUGOFF|CUDF|CSTORE|CROP|CPROB|COUNTTOMARK|COUNTERVALUE|COUNTERDELTA|COUNTER|COSH|COS|CORRELATE|COPYSIGN|COPYGEO|CONTINUE|CONTAINSVALUE|CONTAINSKEY|CONTAINS|COMPACT|COMMONTICKS|CLONEREVERSE|CLONEEMPTY|CLONE|CLIP|CLEARTOMARK|CLEARSYMBOLS|CLEARDEFS|CLEAR|CHUNKENCODER|CHUNK|CEVAL|CEIL|CBRT|CALL|BYTESTOBITS|BUCKETSPAN|bucketizer\\.sum|bucketizer\\.sum.forbid-nulls|bucketizer\\.percentile|bucketizer\\.or|bucketizer\\.min|bucketizer\\.min.forbid-nulls|bucketizer\\.median|bucketizer\\.mean|bucketizer\\.mean.exclude-nulls|bucketizer\\.mean.circular|bucketizer\\.mean.circular.exclude-nulls|bucketizer\\.max|bucketizer\\.max.forbid-nulls|bucketizer\\.mad|bucketizer\\.last|bucketizer\\.join|bucketizer\\.join.forbid-nulls|bucketizer\\.first|bucketizer\\.count|bucketizer\\.count.nonnull|bucketizer\\.count.include-nulls|bucketizer\\.count.exclude-nulls|bucketizer\\.and|BUCKETIZE|BUCKETCOUNT|BREAK|BOOTSTRAP|BITSTOBYTES|BITGET|BITCOUNT|BINTOHEX|BBOX|B64TOHEX|AUTHENTICATE|ATTRIBUTES|ATTICK|ATINDEX|ATBUCKET|ATAN2|ATAN|ASSERTMSG|ASSERT|ASIN|APPLY|APPEND|AND|->Z|->VEC|->V|->TSELEMENTS|->SET|->Q|->PICKLE|->OPB64|->MAT|->MAP|->LIST|->JSON|->HHCODELONG|->HHCODE|->HEX|->GTS|->GEOHASH|->FLOATBITS|->ENCODER|->DOUBLEBITS|->BYTES|->BIN|->B64URL|->B64|AGO|AESWRAP|AESUNWRAP|ADDYEARS|ADDVALUE|ADDMONTHS|ADDDAYS|ACOS|ABS)\b",
"boolean": {},
"function": {},
"number": {},
"operator": {},
"punctuation": {}
}