Liferay.Loader.define("fragment-web$codemirror@5.65.2/mode/vhdl/vhdl",["module","exports","require","../../lib/codemirror"],(function(e,t,n){var r,o=void 0;window;r=function(e){"use strict";function words(e){for(var t={},n=e.split(","),r=0;r<n.length;++r){var o=n[r].toUpperCase(),i=n[r].charAt(0).toUpperCase()+n[r].slice(1);t[n[r]]=!0,t[o]=!0,t[i]=!0}return t}function metaHook(e){return e.eatWhile(/[\w\$_]/),"meta"}e.defineMode("vhdl",(function(e,t){var n,r=e.indentUnit,o=t.atoms||words("null"),i=t.hooks||{"`":metaHook,$:metaHook},a=t.multiLineStrings,s=words("abs,access,after,alias,all,and,architecture,array,assert,attribute,begin,block,body,buffer,bus,case,component,configuration,constant,disconnect,downto,else,elsif,end,end block,end case,end component,end for,end generate,end if,end loop,end process,end record,end units,entity,exit,file,for,function,generate,generic,generic map,group,guarded,if,impure,in,inertial,inout,is,label,library,linkage,literal,loop,map,mod,nand,new,next,nor,null,of,on,open,or,others,out,package,package body,port,port map,postponed,procedure,process,pure,range,record,register,reject,rem,report,return,rol,ror,select,severity,signal,sla,sll,sra,srl,subtype,then,to,transport,type,unaffected,units,until,use,variable,wait,when,while,with,xnor,xor"),u=words("architecture,entity,begin,case,port,else,elsif,end,for,function,if"),l=/[&|~><!\)\(*#%@+\/=?\:;}{,\.\^\-\[\]]/;function tokenBase(e,t){var r=e.next();if(i[r]){var c=i[r](e,t);if(!1!==c)return c}if('"'==r)return t.tokenize=function tokenString2(e){return function(t,n){for(var r,o=!1,i=!1;null!=(r=t.next());){if(r==e&&!o){i=!0;break}o=!o&&"--"==r}return(i||!o&&!a)&&(n.tokenize=tokenBase),"string-2"}}(r),t.tokenize(e,t);if("'"==r)return t.tokenize=function tokenString(e){return function(t,n){for(var r,o=!1,i=!1;null!=(r=t.next());){if(r==e&&!o){i=!0;break}o=!o&&"--"==r}return(i||!o&&!a)&&(n.tokenize=tokenBase),"string"}}(r),t.tokenize(e,t);if(/[\[\]{}\(\),;\:\.]/.test(r))return n=r,null;if(/[\d']/.test(r))return e.eatWhile(/[\w\.']/),"number";if("-"==r&&e.eat("-"))return e.skipToEnd(),"comment";if(l.test(r))return e.eatWhile(l),"operator";e.eatWhile(/[\w\$_]/);var p=e.current();return s.propertyIsEnumerable(p.toLowerCase())?(u.propertyIsEnumerable(p)&&(n="newstatement"),"keyword"):o.propertyIsEnumerable(p)?"atom":"variable"}function Context(e,t,n,r,o){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=o}function pushContext(e,t,n){return e.context=new Context(e.indented,t,n,null,e.context)}function popContext(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}return{startState:function(e){return{tokenize:null,context:new Context((e||0)-r,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var r=t.context;if(e.sol()&&(null==r.align&&(r.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;n=null;var o=(t.tokenize||tokenBase)(e,t);if("comment"==o||"meta"==o)return o;if(null==r.align&&(r.align=!0),";"!=n&&":"!=n||"statement"!=r.type)if("{"==n)pushContext(t,e.column(),"}");else if("["==n)pushContext(t,e.column(),"]");else if("("==n)pushContext(t,e.column(),")");else if("}"==n){for(;"statement"==r.type;)r=popContext(t);for("}"==r.type&&(r=popContext(t));"statement"==r.type;)r=popContext(t)}else n==r.type?popContext(t):("}"==r.type||"top"==r.type||"statement"==r.type&&"newstatement"==n)&&pushContext(t,e.column(),"statement");else popContext(t);return t.startOfLine=!1,o},indent:function(e,t){if(e.tokenize!=tokenBase&&null!=e.tokenize)return 0;var n=t&&t.charAt(0),o=e.context,i=n==o.type;return"statement"==o.type?o.indented+("{"==n?0:r):o.align?o.column+(i?0:1):o.indented+(i?0:r)},electricChars:"{}"}})),e.defineMIME("text/x-vhdl","vhdl")},"object"==typeof t&&"object"==typeof e?r(n("../../lib/codemirror")):"function"==typeof o&&o.amd?o(["../../lib/codemirror"],r):r(CodeMirror)}));
//# sourceMappingURL=vhdl.js.map