Liferay.Loader.define("liferay!layout-content-page-editor-web$codemirror@5.65.2/mode/sieve/sieve",["module","exports","require","../../lib/codemirror"],(function(e,n,t){window,function(e){"use strict";e.defineMode("sieve",(function(e){function words(e){for(var n={},t=e.split(" "),r=0;r<t.length;++r)n[t[r]]=!0;return n}var n=words("if elsif else stop require"),t=words("true false not"),r=e.indentUnit;function tokenBase(e,r){var i=e.next();if("/"==i&&e.eat("*"))return r.tokenize=tokenCComment,tokenCComment(e,r);if("#"===i)return e.skipToEnd(),"comment";if('"'==i)return r.tokenize=function tokenString(e){return function(n,t){for(var r,i=!1;null!=(r=n.next())&&(r!=e||i);)i=!i&&"\\"==r;return i||(t.tokenize=tokenBase),"string"}}(i),r.tokenize(e,r);if("("==i)return r._indent.push("("),r._indent.push("{"),null;if("{"===i)return r._indent.push("{"),null;if(")"==i&&(r._indent.pop(),r._indent.pop()),"}"===i)return r._indent.pop(),null;if(","==i)return null;if(";"==i)return null;if(/[{}\(\),;]/.test(i))return null;if(/\d/.test(i))return e.eatWhile(/[\d]/),e.eat(/[KkMmGg]/),"number";if(":"==i)return e.eatWhile(/[a-zA-Z_]/),e.eatWhile(/[a-zA-Z0-9_]/),"operator";e.eatWhile(/\w/);var o=e.current();return"text"==o&&e.eat(":")?(r.tokenize=tokenMultiLineString,"string"):n.propertyIsEnumerable(o)?"keyword":t.propertyIsEnumerable(o)?"atom":null}function tokenMultiLineString(e,n){return n._multiLineString=!0,e.sol()?("."==e.next()&&e.eol()&&(n._multiLineString=!1,n.tokenize=tokenBase),"string"):(e.eatSpace(),"#"==e.peek()?(e.skipToEnd(),"comment"):(e.skipToEnd(),"string"))}function tokenCComment(e,n){for(var t,r=!1;null!=(t=e.next());){if(r&&"/"==t){n.tokenize=tokenBase;break}r="*"==t}return"comment"}return{startState:function(e){return{tokenize:tokenBase,baseIndent:e||0,_indent:[]}},token:function(e,n){return e.eatSpace()?null:(n.tokenize||tokenBase)(e,n)},indent:function(e,n){var t=e._indent.length;return n&&"}"==n[0]&&t--,t<0&&(t=0),t*r},electricChars:"}"}})),e.defineMIME("application/sieve","sieve")}("object"==typeof n&&"object"==typeof e?t("../../lib/codemirror"):CodeMirror)}));
//# sourceMappingURL=sieve.js.map