Liferay.Loader.define("fragment-web$codemirror@5.65.2/mode/tcl/tcl",["module","exports","require","../../lib/codemirror"],(function(e,r,t){var n,o=void 0;window;n=function(e){"use strict";e.defineMode("tcl",(function(){function parseWords(e){for(var r={},t=e.split(" "),n=0;n<t.length;++n)r[t[n]]=!0;return r}var e=parseWords("Tcl safe after append array auto_execok auto_import auto_load auto_mkindex auto_mkindex_old auto_qualify auto_reset bgerror binary break catch cd close concat continue dde eof encoding error eval exec exit expr fblocked fconfigure fcopy file fileevent filename filename flush for foreach format gets glob global history http if incr info interp join lappend lindex linsert list llength load lrange lreplace lsearch lset lsort memory msgcat namespace open package parray pid pkg::create pkg_mkIndex proc puts pwd re_syntax read regex regexp registry regsub rename resource return scan seek set socket source split string subst switch tcl_endOfWord tcl_findLibrary tcl_startOfNextWord tcl_wordBreakAfter tcl_startOfPreviousWord tcl_wordBreakBefore tcltest tclvars tell time trace unknown unset update uplevel upvar variable vwait"),r=parseWords("if elseif else and not or eq ne in ni for foreach while switch"),t=/[+\-*&%=<>!?^\/\|]/;function chain(e,r,t){return r.tokenize=t,t(e,r)}function tokenBase(n,o){var a=o.beforeParams;o.beforeParams=!1;var i=n.next();if('"'!=i&&"'"!=i||!o.inParams){if(/[\[\]{}\(\),;\.]/.test(i))return"("==i&&a?o.inParams=!0:")"==i&&(o.inParams=!1),null;if(/\d/.test(i))return n.eatWhile(/[\w\.]/),"number";if("#"==i)return n.eat("*")?chain(n,o,tokenComment):"#"==i&&n.match(/ *\[ *\[/)?chain(n,o,tokenUnparsed):(n.skipToEnd(),"comment");if('"'==i)return n.skipTo(/"/),"comment";if("$"==i)return n.eatWhile(/[$_a-z0-9A-Z\.{:]/),n.eatWhile(/}/),o.beforeParams=!0,"builtin";if(t.test(i))return n.eatWhile(t),"comment";n.eatWhile(/[\w\$_{}\xa1-\uffff]/);var c=n.current().toLowerCase();return e&&e.propertyIsEnumerable(c)?"keyword":r&&r.propertyIsEnumerable(c)?(o.beforeParams=!0,"keyword"):null}return chain(n,o,function tokenString(e){return function(r,t){for(var n,o=!1,a=!1;null!=(n=r.next());){if(n==e&&!o){a=!0;break}o=!o&&"\\"==n}return a&&(t.tokenize=tokenBase),"string"}}(i))}function tokenComment(e,r){for(var t,n=!1;t=e.next();){if("#"==t&&n){r.tokenize=tokenBase;break}n="*"==t}return"comment"}function tokenUnparsed(e,r){for(var t,n=0;t=e.next();){if("#"==t&&2==n){r.tokenize=tokenBase;break}"]"==t?n++:" "!=t&&(n=0)}return"meta"}return{startState:function(){return{tokenize:tokenBase,beforeParams:!1,inParams:!1}},token:function(e,r){return e.eatSpace()?null:r.tokenize(e,r)},lineComment:"#"}})),e.defineMIME("text/x-tcl","tcl")},"object"==typeof r&&"object"==typeof e?n(t("../../lib/codemirror")):"function"==typeof o&&o.amd?o(["../../lib/codemirror"],n):n(CodeMirror)}));
//# sourceMappingURL=tcl.js.map