- md5
- 2ca15c430a5353abfd890bd0e2412d1a
- sha1
- 30d90b1208f84f3b09bffa5772336aa0961c19e4
- sha256
- 36654e807bf48f28a53f538a8b145cbd9855d5ebeed42ae7089dbcb940a5616f
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("sieve",function(e){function n(e){for(var n={},t=e.split(" "),r=0;r<t.length;++r)n[t[r]]=!0;return n}function t(e,n){var l=e.next();if("/"==l&&e.eat("*"))return n.tokenize=i,i(e,n);if("#"===l)return e.skipToEnd(),"comment";if('"'==l)return n.tokenize=function(e){return function(n,r){for(var i,o=!1;null!=(i=n.next())&&(i!=e||o);)o=!o&&"\\"==i;return o||(r.tokenize=t),"string"}}(l),n.tokenize(e,n);if("("==l)return n._indent.push("("),n._indent.push("{"),null;if("{"===l)return n._indent.push("{"),null;if(")"==l&&(n._indent.pop(),n._indent.pop()),"}"===l)return n._indent.pop(),null;if(","==l)return null;if(";"==l)return null;if(/[{}\(\),;]/.test(l))return null;if(/\d/.test(l))return e.eatWhile(/[\d]/),e.eat(/[KkMmGg]/),"number";if(":"==l)return e.eatWhile(/[a-zA-Z_]/),e.eatWhile(/[a-zA-Z0-9_]/),"operator";e.eatWhile(/\w/);var f=e.current();return"text"==f&&e.eat(":")?(n.tokenize=r,"string"):o.propertyIsEnumerable(f)?"keyword":u.propertyIsEnumerable(f)?"atom":null}function r(e,n){return n._multiLineString=!0,e.sol()?("."==e.next()&&e.eol()&&(n._multiLineString=!1,n.tokenize=t),"string"):(e.eatSpace(),"#"==e.peek()?(e.skipToEnd(),"comment"):(e.skipToEnd(),"string"))}function i(e,n){for(var r,i=!1;null!=(r=e.next());){if(i&&"/"==r){n.tokenize=t;break}i="*"==r}return"comment"}var o=n("if elsif else stop require"),u=n("true false not"),l=e.indentUnit;return{startState:function(e){return{tokenize:t,baseIndent:e||0,_indent:[]}},token:function(e,n){return e.eatSpace()?null:(n.tokenize||t)(e,n)},indent:function(e,n){var t=e._indent.length;return n&&"}"==n[0]&&t--,t<0&&(t=0),t*l},electricChars:"}"}}),e.defineMIME("application/sieve","sieve")});
No other release has this exact content. See every version of this file.