'use strict';(function(b){"object"==typeof exports&&"object"==typeof module?b(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],b):b(CodeMirror)})(function(b){b.defineMode("pascal",function(){function b(a,d){var c=a.next();if("#"==c&&d.startOfLine)return a.skipToEnd(),"meta";if('"'==c||"'"==c)return d.tokenize=h(c),d.tokenize(a,d);if("("==c&&a.eat("*"))return d.tokenize=e,e(a,d);if(/[\[\]{}\(\),;:\.]/.test(c))return null;if(/\d/.test(c))return a.eatWhile(/[\w\.]/),
"number";if("/"==c&&a.eat("/"))return a.skipToEnd(),"comment";if(g.test(c))return a.eatWhile(g),"operator";a.eatWhile(/[\w\$_]/);a=a.current();return k.propertyIsEnumerable(a)?"keyword":l.propertyIsEnumerable(a)?"atom":"variable"}function h(a){return function(d,c){for(var b=!1,f,e=!1;null!=(f=d.next());){if(f==a&&!b){e=!0;break}b=!b&&"\\"==f}if(e||!b)c.tokenize=null;return"string"}}function e(a,d){for(var c=!1,b;b=a.next();){if(")"==b&&c){d.tokenize=null;break}c="*"==b}return"comment"}var k=function(a){var b=
{};a=a.split(" ");for(var c=0;c<a.length;++c)b[a[c]]=!0;return b}("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"),
l={"null":!0},g=/[+\-*&%=<>!?|\/]/;return{startState:function(){return{tokenize:null}},token:function(a,d){return a.eatSpace()?null:(d.tokenize||b)(a,d)},electricChars:"{}"}});b.defineMIME("text/x-pascal","pascal")});
