Liferay.Loader.define("liferay!object-js-components-web$codemirror@5.65.12/mode/go/go",["module","exports","require","../../lib/codemirror"],(function(e,t,n){var o,r=void 0;window;o=function(e){"use strict";e.defineMode("go",(function(t){var n,o=t.indentUnit,r={break:!0,case:!0,chan:!0,const:!0,continue:!0,default:!0,defer:!0,else:!0,fallthrough:!0,for:!0,func:!0,go:!0,goto:!0,if:!0,import:!0,interface:!0,map:!0,package:!0,range:!0,return:!0,select:!0,struct:!0,switch:!0,type:!0,var:!0,bool:!0,byte:!0,complex64:!0,complex128:!0,float32:!0,float64:!0,int8:!0,int16:!0,int32:!0,int64:!0,string:!0,uint8:!0,uint16:!0,uint32:!0,uint64:!0,int:!0,uint:!0,uintptr:!0,error:!0,rune:!0,any:!0,comparable:!0},i={true:!0,false:!0,iota:!0,nil:!0,append:!0,cap:!0,close:!0,complex:!0,copy:!0,delete:!0,imag:!0,len:!0,make:!0,new:!0,panic:!0,print:!0,println:!0,real:!0,recover:!0},a=/[+\-*&^%:=<>!|\/]/;function tokenBase(e,t){var o=e.next();if('"'==o||"'"==o||"`"==o)return t.tokenize=function tokenString(e){return function(t,n){for(var o,r=!1,i=!1;null!=(o=t.next());){if(o==e&&!r){i=!0;break}r=!r&&"`"!=e&&"\\"==o}return(i||!r&&"`"!=e)&&(n.tokenize=tokenBase),"string"}}(o),t.tokenize(e,t);if(/[\d\.]/.test(o))return"."==o?e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):"0"==o?e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^0[0-7]+/):e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if(/[\[\]{}\(\),;\:\.]/.test(o))return n=o,null;if("/"==o){if(e.eat("*"))return t.tokenize=tokenComment,tokenComment(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(a.test(o))return e.eatWhile(a),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var c=e.current();return r.propertyIsEnumerable(c)?("case"!=c&&"default"!=c||(n="case"),"keyword"):i.propertyIsEnumerable(c)?"atom":"variable"}function tokenComment(e,t){for(var n,o=!1;n=e.next();){if("/"==n&&o){t.tokenize=tokenBase;break}o="*"==n}return"comment"}function Context(e,t,n,o,r){this.indented=e,this.column=t,this.type=n,this.align=o,this.prev=r}function pushContext(e,t,n){return e.context=new Context(e.indented,t,n,null,e.context)}function popContext(e){if(e.context.prev){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)-o,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var o=t.context;if(e.sol()&&(null==o.align&&(o.align=!1),t.indented=e.indentation(),t.startOfLine=!0,"case"==o.type&&(o.type="}")),e.eatSpace())return null;n=null;var r=(t.tokenize||tokenBase)(e,t);return"comment"==r||(null==o.align&&(o.align=!0),"{"==n?pushContext(t,e.column(),"}"):"["==n?pushContext(t,e.column(),"]"):"("==n?pushContext(t,e.column(),")"):"case"==n?o.type="case":("}"==n&&"}"==o.type||n==o.type)&&popContext(t),t.startOfLine=!1),r},indent:function(t,n){if(t.tokenize!=tokenBase&&null!=t.tokenize)return e.Pass;var r=t.context,i=n&&n.charAt(0);if("case"==r.type&&/^(?:case|default)\b/.test(n))return t.context.type="}",r.indented;var a=i==r.type;return r.align?r.column+(a?0:1):r.indented+(a?0:o)},electricChars:"{}):",closeBrackets:"()[]{}''\"\"``",fold:"brace",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}})),e.defineMIME("text/x-go","go")},"object"==typeof t&&"object"==typeof e?o(n("../../lib/codemirror")):"function"==typeof r&&r.amd?r(["../../lib/codemirror"],o):o(CodeMirror)}));
//# sourceMappingURL=go.js.map