function c(e){for(var r={},t=e.split(" "),n=0;n<t.length;++n)r[t[n]]=!0;return r}var u=c("absolute and array asm begin case const constructor destructor div do downto else end file for function goto if implementation in inherited inline interface label mod nil not object of operator or packed procedure program record reintroduce repeat self set shl shr string then to type unit until uses var while with xor as class dispinterface except exports finalization finally initialization inline is library on out packed property raise resourcestring threadvar try absolute abstract alias assembler bitpacked break cdecl continue cppdecl cvar default deprecated dynamic enumerator experimental export external far far16 forward generic helper implements index interrupt iocheck local message name near nodefault noreturn nostackframe oldfpccall otherwise overload override pascal platform private protected public published read register reintroduce result safecall saveregisters softfloat specialize static stdcall stored strict unaligned unimplemented varargs virtual write"),f={null:!0},i=/[+\-*&%=<>!?|\/]/;function p(e,r){var t=e.next();if(t=="#"&&r.startOfLine)return e.skipToEnd(),"meta";if(t=='"'||t=="'")return r.tokenize=d(t),r.tokenize(e,r);if(t=="("&&e.eat("*"))return r.tokenize=l,l(e,r);if(t=="{")return r.tokenize=s,s(e,r);if(/[\[\]\(\),;\:\.]/.test(t))return null;if(/\d/.test(t))return e.eatWhile(/[\w\.]/),"number";if(t=="/"&&e.eat("/"))return e.skipToEnd(),"comment";if(i.test(t))return e.eatWhile(i),"operator";e.eatWhile(/[\w\$_]/);var n=e.current().toLowerCase();return u.propertyIsEnumerable(n)?"keyword":f.propertyIsEnumerable(n)?"atom":"variable"}function d(e){return function(r,t){for(var n=!1,a,o=!1;(a=r.next())!=null;){if(a==e&&!n){o=!0;break}n=!n&&a=="\\"}return(o||!n)&&(t.tokenize=null),"string"}}function l(e,r){for(var t=!1,n;n=e.next();){if(n==")"&&t){r.tokenize=null;break}t=n=="*"}return"comment"}function s(e,r){for(var t;t=e.next();)if(t=="}"){r.tokenize=null;break}return"comment"}const m={name:"pascal",startState:function(){return{tokenize:null}},token:function(e,r){return e.eatSpace()?null:(r.tokenize||p)(e,r)},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{block:{open:"(*",close:"*)"}}}};export{m as t};
