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/rust
File: rust.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
(function(mod) {
[3] Fix | Delete
if (typeof exports == "object" && typeof module == "object") // CommonJS
[4] Fix | Delete
mod(require("../../lib/codemirror"), require("../../addon/mode/simple"));
[5] Fix | Delete
else if (typeof define == "function" && define.amd) // AMD
[6] Fix | Delete
define(["../../lib/codemirror", "../../addon/mode/simple"], mod);
[7] Fix | Delete
else // Plain browser env
[8] Fix | Delete
mod(CodeMirror);
[9] Fix | Delete
})(function(CodeMirror) {
[10] Fix | Delete
"use strict";
[11] Fix | Delete
[12] Fix | Delete
CodeMirror.defineSimpleMode("rust",{
[13] Fix | Delete
start: [
[14] Fix | Delete
// string and byte string
[15] Fix | Delete
{regex: /b?"/, token: "string", next: "string"},
[16] Fix | Delete
// raw string and raw byte string
[17] Fix | Delete
{regex: /b?r"/, token: "string", next: "string_raw"},
[18] Fix | Delete
{regex: /b?r#+"/, token: "string", next: "string_raw_hash"},
[19] Fix | Delete
// character
[20] Fix | Delete
{regex: /'(?:[^'\\]|\\(?:[nrt0'"]|x[\da-fA-F]{2}|u\{[\da-fA-F]{6}\}))'/, token: "string-2"},
[21] Fix | Delete
// byte
[22] Fix | Delete
{regex: /b'(?:[^']|\\(?:['\\nrt0]|x[\da-fA-F]{2}))'/, token: "string-2"},
[23] Fix | Delete
[24] Fix | Delete
{regex: /(?:(?:[0-9][0-9_]*)(?:(?:[Ee][+-]?[0-9_]+)|\.[0-9_]+(?:[Ee][+-]?[0-9_]+)?)(?:f32|f64)?)|(?:0(?:b[01_]+|(?:o[0-7_]+)|(?:x[0-9a-fA-F_]+))|(?:[0-9][0-9_]*))(?:u8|u16|u32|u64|i8|i16|i32|i64|isize|usize)?/,
[25] Fix | Delete
token: "number"},
[26] Fix | Delete
{regex: /(let(?:\s+mut)?|fn|enum|mod|struct|type)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)/, token: ["keyword", null, "def"]},
[27] Fix | Delete
{regex: /(?:abstract|alignof|as|box|break|continue|const|crate|do|else|enum|extern|fn|for|final|if|impl|in|loop|macro|match|mod|move|offsetof|override|priv|proc|pub|pure|ref|return|self|sizeof|static|struct|super|trait|type|typeof|unsafe|unsized|use|virtual|where|while|yield)\b/, token: "keyword"},
[28] Fix | Delete
{regex: /\b(?:Self|isize|usize|char|bool|u8|u16|u32|u64|f16|f32|f64|i8|i16|i32|i64|str|Option)\b/, token: "atom"},
[29] Fix | Delete
{regex: /\b(?:true|false|Some|None|Ok|Err)\b/, token: "builtin"},
[30] Fix | Delete
{regex: /\b(fn)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)/,
[31] Fix | Delete
token: ["keyword", null ,"def"]},
[32] Fix | Delete
{regex: /#!?\[.*\]/, token: "meta"},
[33] Fix | Delete
{regex: /\/\/.*/, token: "comment"},
[34] Fix | Delete
{regex: /\/\*/, token: "comment", next: "comment"},
[35] Fix | Delete
{regex: /[-+\/*=<>!]+/, token: "operator"},
[36] Fix | Delete
{regex: /[a-zA-Z_]\w*!/,token: "variable-3"},
[37] Fix | Delete
{regex: /[a-zA-Z_]\w*/, token: "variable"},
[38] Fix | Delete
{regex: /[\{\[\(]/, indent: true},
[39] Fix | Delete
{regex: /[\}\]\)]/, dedent: true}
[40] Fix | Delete
],
[41] Fix | Delete
string: [
[42] Fix | Delete
{regex: /"/, token: "string", next: "start"},
[43] Fix | Delete
{regex: /(?:[^\\"]|\\(?:.|$))*/, token: "string"}
[44] Fix | Delete
],
[45] Fix | Delete
string_raw: [
[46] Fix | Delete
{regex: /"/, token: "string", next: "start"},
[47] Fix | Delete
{regex: /[^"]*/, token: "string"}
[48] Fix | Delete
],
[49] Fix | Delete
string_raw_hash: [
[50] Fix | Delete
{regex: /"#+/, token: "string", next: "start"},
[51] Fix | Delete
{regex: /(?:[^"]|"(?!#))*/, token: "string"}
[52] Fix | Delete
],
[53] Fix | Delete
comment: [
[54] Fix | Delete
{regex: /.*?\*\//, token: "comment", next: "start"},
[55] Fix | Delete
{regex: /.*/, token: "comment"}
[56] Fix | Delete
],
[57] Fix | Delete
meta: {
[58] Fix | Delete
dontIndentStates: ["comment"],
[59] Fix | Delete
electricInput: /^\s*\}$/,
[60] Fix | Delete
blockCommentStart: "/*",
[61] Fix | Delete
blockCommentEnd: "*/",
[62] Fix | Delete
lineComment: "//",
[63] Fix | Delete
fold: "brace"
[64] Fix | Delete
}
[65] Fix | Delete
});
[66] Fix | Delete
[67] Fix | Delete
[68] Fix | Delete
CodeMirror.defineMIME("text/x-rustsrc", "rust");
[69] Fix | Delete
});
[70] Fix | Delete
[71] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function