- md5
- 14d4af27ce5b4a3c3aeb6e1bc10240ed
- sha1
- 566449e8bd472fc62297c0aa1adfba1ffc677b18
- sha256
- 6ff4faffe3fedddc60c86d4e217d079d482a91a906abae9c6c70d97c4a12831d
!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("fcl",function(e){function n(e,n){var r=e.next();if(/[\d\.]/.test(r))return"."==r?e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):"0"==r?e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^0[0-7]+/):e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if("/"==r||"("==r){if(e.eat("*"))return n.tokenize=t,t(e,n);if(e.eat("/"))return e.skipToEnd(),"comment"}if(f.test(r))return e.eatWhile(f),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var o=e.current().toLowerCase();return i.propertyIsEnumerable(o)||u.propertyIsEnumerable(o)||a.propertyIsEnumerable(o)?"keyword":c.propertyIsEnumerable(o)?"atom":"variable"}function t(e,t){for(var r,o=!1;r=e.next();){if(("/"==r||")"==r)&&o){t.tokenize=n;break}o="*"==r}return"comment"}function r(e,n,t,r,o){this.indented=e,this.column=n,this.type=t,this.align=r,this.prev=o}var o=e.indentUnit,i={term:!0,method:!0,accu:!0,rule:!0,then:!0,is:!0,and:!0,or:!0,if:!0,default:!0},u={var_input:!0,var_output:!0,fuzzify:!0,defuzzify:!0,function_block:!0,ruleblock:!0},a={end_ruleblock:!0,end_defuzzify:!0,end_function_block:!0,end_fuzzify:!0,end_var:!0},c={true:!0,false:!0,nan:!0,real:!0,min:!0,max:!0,cog:!0,cogs:!0},f=/[+\-*&^%:=<>!|\/]/;return{startState:function(e){return{tokenize:null,context:new r((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),e.eatSpace())return null;var i=(t.tokenize||n)(e,t);if("comment"==i)return i;null==o.align&&(o.align=!0);var c=e.current().toLowerCase();return u.propertyIsEnumerable(c)?function(e,n,t){e.context=new r(e.indented,n,t,null,e.context)}(t,e.column(),"end_block"):a.propertyIsEnumerable(c)&&function(e){if(e.context.prev)"end_block"==e.context.type&&(e.indented=e.context.indented),e.context=e.context.prev}(t),t.startOfLine=!1,i},indent:function(e,t){if(e.tokenize!=n&&null!=e.tokenize)return 0;var r=e.context,i=a.propertyIsEnumerable(t);return r.align?r.column+(i?0:1):r.indented+(i?0:o)},electricChars:"ryk",fold:"brace",blockCommentStart:"(*",blockCommentEnd:"*)",lineComment:"//"}}),e.defineMIME("text/x-fcl","fcl")});
No other release has this exact content. See every version of this file.