Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/wp-file-.../lib/codemirr.../mode/factor
File: factor.js
// CodeMirror, copyright (c) by Marijn Haverbeke and others
[0] Fix | Delete
// Distributed under an MIT license: http://codemirror.net/LICENSE
[1] Fix | Delete
[2] Fix | Delete
// Factor syntax highlight - simple mode
[3] Fix | Delete
//
[4] Fix | Delete
// by Dimage Sapelkin (https://github.com/kerabromsmu)
[5] Fix | Delete
[6] Fix | Delete
(function(mod) {
[7] Fix | Delete
if (typeof exports == "object" && typeof module == "object") // CommonJS
[8] Fix | Delete
mod(require("../../lib/codemirror"), require("../../addon/mode/simple"));
[9] Fix | Delete
else if (typeof define == "function" && define.amd) // AMD
[10] Fix | Delete
define(["../../lib/codemirror", "../../addon/mode/simple"], mod);
[11] Fix | Delete
else // Plain browser env
[12] Fix | Delete
mod(CodeMirror);
[13] Fix | Delete
})(function(CodeMirror) {
[14] Fix | Delete
"use strict";
[15] Fix | Delete
[16] Fix | Delete
CodeMirror.defineSimpleMode("factor", {
[17] Fix | Delete
// The start state contains the rules that are intially used
[18] Fix | Delete
start: [
[19] Fix | Delete
// comments
[20] Fix | Delete
{regex: /#?!.*/, token: "comment"},
[21] Fix | Delete
// strings """, multiline --> state
[22] Fix | Delete
{regex: /"""/, token: "string", next: "string3"},
[23] Fix | Delete
{regex: /"/, token: "string", next: "string"},
[24] Fix | Delete
// numbers: dec, hex, unicode, bin, fractional, complex
[25] Fix | Delete
{regex: /(?:[+-]?)(?:0x[\d,a-f]+)|(?:0o[0-7]+)|(?:0b[0,1]+)|(?:\d+.?\d*)/, token: "number"},
[26] Fix | Delete
//{regex: /[+-]?/} //fractional
[27] Fix | Delete
// definition: defining word, defined word, etc
[28] Fix | Delete
{regex: /(\:)(\s+)(\S+)(\s+)(\()/, token: ["keyword", null, "def", null, "keyword"], next: "stack"},
[29] Fix | Delete
// vocabulary using --> state
[30] Fix | Delete
{regex: /USING\:/, token: "keyword", next: "vocabulary"},
[31] Fix | Delete
// vocabulary definition/use
[32] Fix | Delete
{regex: /(USE\:|IN\:)(\s+)(\S+)/, token: ["keyword", null, "variable-2"]},
[33] Fix | Delete
// <constructors>
[34] Fix | Delete
{regex: /<\S+>/, token: "builtin"},
[35] Fix | Delete
// "keywords", incl. ; t f . [ ] { } defining words
[36] Fix | Delete
{regex: /;|t|f|if|\.|\[|\]|\{|\}|MAIN:/, token: "keyword"},
[37] Fix | Delete
// any id (?)
[38] Fix | Delete
{regex: /\S+/, token: "variable"},
[39] Fix | Delete
[40] Fix | Delete
{
[41] Fix | Delete
regex: /./,
[42] Fix | Delete
token: null
[43] Fix | Delete
}
[44] Fix | Delete
],
[45] Fix | Delete
vocabulary: [
[46] Fix | Delete
{regex: /;/, token: "keyword", next: "start"},
[47] Fix | Delete
{regex: /\S+/, token: "variable-2"},
[48] Fix | Delete
{
[49] Fix | Delete
regex: /./,
[50] Fix | Delete
token: null
[51] Fix | Delete
}
[52] Fix | Delete
],
[53] Fix | Delete
string: [
[54] Fix | Delete
{regex: /(?:[^\\]|\\.)*?"/, token: "string", next: "start"},
[55] Fix | Delete
{regex: /.*/, token: "string"}
[56] Fix | Delete
],
[57] Fix | Delete
string3: [
[58] Fix | Delete
{regex: /(?:[^\\]|\\.)*?"""/, token: "string", next: "start"},
[59] Fix | Delete
{regex: /.*/, token: "string"}
[60] Fix | Delete
],
[61] Fix | Delete
stack: [
[62] Fix | Delete
{regex: /\)/, token: "meta", next: "start"},
[63] Fix | Delete
{regex: /--/, token: "meta"},
[64] Fix | Delete
{regex: /\S+/, token: "variable-3"},
[65] Fix | Delete
{
[66] Fix | Delete
regex: /./,
[67] Fix | Delete
token: null
[68] Fix | Delete
}
[69] Fix | Delete
],
[70] Fix | Delete
// The meta property contains global information about the mode. It
[71] Fix | Delete
// can contain properties like lineComment, which are supported by
[72] Fix | Delete
// all modes, and also directives like dontIndentStates, which are
[73] Fix | Delete
// specific to simple modes.
[74] Fix | Delete
meta: {
[75] Fix | Delete
dontIndentStates: ["start", "vocabulary", "string", "string3", "stack"],
[76] Fix | Delete
lineComment: [ "!", "#!" ]
[77] Fix | Delete
}
[78] Fix | Delete
});
[79] Fix | Delete
[80] Fix | Delete
CodeMirror.defineMIME("text/x-factor", "factor");
[81] Fix | Delete
});
[82] Fix | Delete
[83] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function