| Server IP : 172.67.191.97 / Your IP : 104.23.197.209 Web Server : Apache/2.4.63 (Ubuntu) System : Linux adminpruebas-Virtual-Machine 6.14.0-37-generic #37-Ubuntu SMP PREEMPT_DYNAMIC Fri Nov 14 22:10:32 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 8.4.5 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/pregrados/ingenieria-sistemas/media/vendor/codemirror/mode/modelica/ |
Upload File : |
(function(t){typeof exports=="object"&&typeof module=="object"?t(require("../../lib/codemirror")):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)})(function(t){"use strict";t.defineMode("modelica",function(o,l){var a=o.indentUnit,r=l.keywords||{},c=l.builtin||{},d=l.atoms||{},s=/[;=\(:\),{}.*<>+\-\/^\[\]]/,z=/(:=|<=|>=|==|<>|\.\+|\.\-|\.\*|\.\/|\.\^)/,f=/[0-9]/,p=/[_a-zA-Z]/;function y(n,e){return n.skipToEnd(),e.tokenize=null,"comment"}function w(n,e){for(var i=!1,u;u=n.next();){if(i&&u=="/"){e.tokenize=null;break}i=u=="*"}return"comment"}function m(n,e){for(var i=!1,u;(u=n.next())!=null;){if(u=='"'&&!i){e.tokenize=null,e.sol=!1;break}i=!i&&u=="\\"}return"string"}function E(n,e){for(n.eatWhile(f);n.eat(f)||n.eat(p););var i=n.current();return e.sol&&(i=="package"||i=="model"||i=="when"||i=="connector")?e.level++:e.sol&&i=="end"&&e.level>0&&e.level--,e.tokenize=null,e.sol=!1,r.propertyIsEnumerable(i)?"keyword":c.propertyIsEnumerable(i)?"builtin":d.propertyIsEnumerable(i)?"atom":"variable"}function I(n,e){for(;n.eat(/[^']/););return e.tokenize=null,e.sol=!1,n.eat("'")?"variable":"error"}function S(n,e){return n.eatWhile(f),n.eat(".")&&n.eatWhile(f),(n.eat("e")||n.eat("E"))&&(n.eat("-")||n.eat("+"),n.eatWhile(f)),e.tokenize=null,e.sol=!1,"number"}return{startState:function(){return{tokenize:null,level:0,sol:!0}},token:function(n,e){if(e.tokenize!=null)return e.tokenize(n,e);if(n.sol()&&(e.sol=!0),n.eatSpace())return e.tokenize=null,null;var i=n.next();if(i=="/"&&n.eat("/"))e.tokenize=y;else if(i=="/"&&n.eat("*"))e.tokenize=w;else{if(z.test(i+n.peek()))return n.next(),e.tokenize=null,"operator";if(s.test(i))return e.tokenize=null,"operator";if(p.test(i))e.tokenize=E;else if(i=="'"&&n.peek()&&n.peek()!="'")e.tokenize=I;else if(i=='"')e.tokenize=m;else if(f.test(i))e.tokenize=S;else return e.tokenize=null,"error"}return e.tokenize(n,e)},indent:function(n,e){if(n.tokenize!=null)return t.Pass;var i=n.level;return/(algorithm)/.test(e)&&i--,/(equation)/.test(e)&&i--,/(initial algorithm)/.test(e)&&i--,/(initial equation)/.test(e)&&i--,/(end)/.test(e)&&i--,i>0?a*i:0},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}});function k(o){for(var l={},a=o.split(" "),r=0;r<a.length;++r)l[a[r]]=!0;return l}var h="algorithm and annotation assert block break class connect connector constant constrainedby der discrete each else elseif elsewhen encapsulated end enumeration equation expandable extends external false final flow for function if import impure in initial inner input loop model not operator or outer output package parameter partial protected public pure record redeclare replaceable return stream then true type when while within",v="abs acos actualStream asin atan atan2 cardinality ceil cos cosh delay div edge exp floor getInstanceName homotopy inStream integer log log10 mod pre reinit rem semiLinear sign sin sinh spatialDistribution sqrt tan tanh",b="Real Boolean Integer String";function g(o,l){typeof o=="string"&&(o=[o]);var a=[];function r(d){if(d)for(var s in d)d.hasOwnProperty(s)&&a.push(s)}r(l.keywords),r(l.builtin),r(l.atoms),a.length&&(l.helperType=o[0],t.registerHelper("hintWords",o[0],a));for(var c=0;c<o.length;++c)t.defineMIME(o[c],l)}g(["text/x-modelica"],{name:"modelica",keywords:k(h),builtin:k(v),atoms:k(b)})});