function R(O){for(var E={},T=O.split(" "),I=0;I<T.length;++I)E[T[I]]=!0;return E}var e="ABS ACOS ARITY ASIN ATAN AVG BAGSIZE BINSTORAGE BLOOM BUILDBLOOM CBRT CEIL CONCAT COR COS COSH COUNT COUNT_STAR COV CONSTANTSIZE CUBEDIMENSIONS DIFF DISTINCT DOUBLEABS DOUBLEAVG DOUBLEBASE DOUBLEMAX DOUBLEMIN DOUBLEROUND DOUBLESUM EXP FLOOR FLOATABS FLOATAVG FLOATMAX FLOATMIN FLOATROUND FLOATSUM GENERICINVOKER INDEXOF INTABS INTAVG INTMAX INTMIN INTSUM INVOKEFORDOUBLE INVOKEFORFLOAT INVOKEFORINT INVOKEFORLONG INVOKEFORSTRING INVOKER ISEMPTY JSONLOADER JSONMETADATA JSONSTORAGE LAST_INDEX_OF LCFIRST LOG LOG10 LOWER LONGABS LONGAVG LONGMAX LONGMIN LONGSUM MAX MIN MAPSIZE MONITOREDUDF NONDETERMINISTIC OUTPUTSCHEMA  PIGSTORAGE PIGSTREAMING RANDOM REGEX_EXTRACT REGEX_EXTRACT_ALL REPLACE ROUND SIN SINH SIZE SQRT STRSPLIT SUBSTRING SUM STRINGCONCAT STRINGMAX STRINGMIN STRINGSIZE TAN TANH TOBAG TOKENIZE TOMAP TOP TOTUPLE TRIM TEXTLOADER TUPLESIZE UCFIRST UPPER UTF8STORAGECONVERTER ",L="VOID IMPORT RETURNS DEFINE LOAD FILTER FOREACH ORDER CUBE DISTINCT COGROUP JOIN CROSS UNION SPLIT INTO IF OTHERWISE ALL AS BY USING INNER OUTER ONSCHEMA PARALLEL PARTITION GROUP AND OR NOT GENERATE FLATTEN ASC DESC IS STREAM THROUGH STORE MAPREDUCE SHIP CACHE INPUT OUTPUT STDERROR STDIN STDOUT LIMIT SAMPLE LEFT RIGHT FULL EQ GT LT GTE LTE NEQ MATCHES TRUE FALSE DUMP",r="BOOLEAN INT LONG FLOAT DOUBLE CHARARRAY BYTEARRAY BAG TUPLE MAP ",n=R(e),U=R(L),C=R(r),N=/[*+\-%<>=&?:\/!|]/;function G(O,E,T){return E.tokenize=T,T(O,E)}function a(O,E){for(var T=!1,I;I=O.next();){if(I=="/"&&T){E.tokenize=S;break}T=I=="*"}return"comment"}function o(O){return function(E,T){for(var I=!1,A,t=!1;(A=E.next())!=null;){if(A==O&&!I){t=!0;break}I=!I&&A=="\\"}return(t||!I)&&(T.tokenize=S),"error"}}function S(O,E){var T=O.next();return T=='"'||T=="'"?G(O,E,o(T)):/[\[\]{}\(\),;\.]/.test(T)?null:/\d/.test(T)?(O.eatWhile(/[\w\.]/),"number"):T=="/"?O.eat("*")?G(O,E,a):(O.eatWhile(N),"operator"):T=="-"?O.eat("-")?(O.skipToEnd(),"comment"):(O.eatWhile(N),"operator"):N.test(T)?(O.eatWhile(N),"operator"):(O.eatWhile(/[\w\$_]/),U&&U.propertyIsEnumerable(O.current().toUpperCase())&&!O.eat(")")&&!O.eat(".")?"keyword":n&&n.propertyIsEnumerable(O.current().toUpperCase())?"builtin":C&&C.propertyIsEnumerable(O.current().toUpperCase())?"type":"variable")}const M={name:"pig",startState:function(){return{tokenize:S,startOfLine:!0}},token:function(O,E){return O.eatSpace()?null:E.tokenize(O,E)},languageData:{autocomplete:(e+r+L).split(" ")}};export{M as t};
