function e(e){for(var t={},n=e.split(` `),r=0;r<n.length;++r)t[n[r]]=!0;return t}var t=e(`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`),n={null:!0},r=/[+\-*&%=<>!?|\/]/;function i(e,i){var c=e.next();if(c==`#`&&i.startOfLine)return e.skipToEnd(),`meta`;if(c==`"`||c==`'`)return i.tokenize=a(c),i.tokenize(e,i);if(c==`(`&&e.eat(`*`))return i.tokenize=o,o(e,i);if(c==`{`)return i.tokenize=s,s(e,i);if(/[\[\]\(\),;\:\.]/.test(c))return null;if(/\d/.test(c))return e.eatWhile(/[\w\.]/),`number`;if(c==`/`&&e.eat(`/`))return e.skipToEnd(),`comment`;if(r.test(c))return e.eatWhile(r),`operator`;e.eatWhile(/[\w\$_]/);var l=e.current().toLowerCase();return t.propertyIsEnumerable(l)?`keyword`:n.propertyIsEnumerable(l)?`atom`:`variable`}function a(e){return function(t,n){for(var r=!1,i,a=!1;(i=t.next())!=null;){if(i==e&&!r){a=!0;break}r=!r&&i==`\\`}return(a||!r)&&(n.tokenize=null),`string`}}function o(e,t){for(var n=!1,r;r=e.next();){if(r==`)`&&n){t.tokenize=null;break}n=r==`*`}return`comment`}function s(e,t){for(var n;n=e.next();)if(n==`}`){t.tokenize=null;break}return`comment`}var c={name:`pascal`,startState:function(){return{tokenize:null}},token:function(e,t){return e.eatSpace()?null:(t.tokenize||i)(e,t)},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{block:{open:`(*`,close:`*)`}}}};export{c as pascal};