Edit File by line
/home/barbar84/www/wp-conte.../plugins/wp-file-.../lib/codemirr.../mode/php
File: test.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() {
[3] Fix | Delete
var mode = CodeMirror.getMode({indentUnit: 2}, "php");
[4] Fix | Delete
function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }
[5] Fix | Delete
[6] Fix | Delete
MT('simple_test',
[7] Fix | Delete
'[meta <?php] ' +
[8] Fix | Delete
'[keyword echo] [string "aaa"]; ' +
[9] Fix | Delete
'[meta ?>]');
[10] Fix | Delete
[11] Fix | Delete
MT('variable_interpolation_non_alphanumeric',
[12] Fix | Delete
'[meta <?php]',
[13] Fix | Delete
'[keyword echo] [string "aaa$~$!$@$#$$$%$^$&$*jQuery($)jQuery.$<$>$/$\\$}$\\\"$:$;$?$|$[[$]]$+$=aaa"]',
[14] Fix | Delete
'[meta ?>]');
[15] Fix | Delete
[16] Fix | Delete
MT('variable_interpolation_digits',
[17] Fix | Delete
'[meta <?php]',
[18] Fix | Delete
'[keyword echo] [string "aaa$1$2$3$4$5$6$7$8$9$0aaa"]',
[19] Fix | Delete
'[meta ?>]');
[20] Fix | Delete
[21] Fix | Delete
MT('variable_interpolation_simple_syntax_1',
[22] Fix | Delete
'[meta <?php]',
[23] Fix | Delete
'[keyword echo] [string "aaa][variable-2 $aaa][string .aaa"];',
[24] Fix | Delete
'[meta ?>]');
[25] Fix | Delete
[26] Fix | Delete
MT('variable_interpolation_simple_syntax_2',
[27] Fix | Delete
'[meta <?php]',
[28] Fix | Delete
'[keyword echo] [string "][variable-2 $aaaa][[','[number 2]', ']][string aa"];',
[29] Fix | Delete
'[keyword echo] [string "][variable-2 $aaaa][[','[number 2345]', ']][string aa"];',
[30] Fix | Delete
'[keyword echo] [string "][variable-2 $aaaa][[','[number 2.3]', ']][string aa"];',
[31] Fix | Delete
'[keyword echo] [string "][variable-2 $aaaa][[','[variable aaaaa]', ']][string aa"];',
[32] Fix | Delete
'[keyword echo] [string "][variable-2 $aaaa][[','[variable-2 $aaaaa]',']][string aa"];',
[33] Fix | Delete
[34] Fix | Delete
'[keyword echo] [string "1aaa][variable-2 $aaaa][[','[number 2]', ']][string aa"];',
[35] Fix | Delete
'[keyword echo] [string "aaa][variable-2 $aaaa][[','[number 2345]', ']][string aa"];',
[36] Fix | Delete
'[keyword echo] [string "aaa][variable-2 $aaaa][[','[number 2.3]', ']][string aa"];',
[37] Fix | Delete
'[keyword echo] [string "aaa][variable-2 $aaaa][[','[variable aaaaa]', ']][string aa"];',
[38] Fix | Delete
'[keyword echo] [string "aaa][variable-2 $aaaa][[','[variable-2 $aaaaa]',']][string aa"];',
[39] Fix | Delete
'[meta ?>]');
[40] Fix | Delete
[41] Fix | Delete
MT('variable_interpolation_simple_syntax_3',
[42] Fix | Delete
'[meta <?php]',
[43] Fix | Delete
'[keyword echo] [string "aaa][variable-2 $aaaa]->[variable aaaaa][string .aaaaaa"];',
[44] Fix | Delete
'[keyword echo] [string "aaa][variable-2 $aaaa][string ->][variable-2 $aaaaa][string .aaaaaa"];',
[45] Fix | Delete
'[keyword echo] [string "aaa][variable-2 $aaaa]->[variable aaaaa][string [[2]].aaaaaa"];',
[46] Fix | Delete
'[keyword echo] [string "aaa][variable-2 $aaaa]->[variable aaaaa][string ->aaaa2.aaaaaa"];',
[47] Fix | Delete
'[meta ?>]');
[48] Fix | Delete
[49] Fix | Delete
MT('variable_interpolation_escaping',
[50] Fix | Delete
'[meta <?php] [comment /* Escaping */]',
[51] Fix | Delete
'[keyword echo] [string "aaa\\$aaaa->aaa.aaa"];',
[52] Fix | Delete
'[keyword echo] [string "aaa\\$aaaa[[2]]aaa.aaa"];',
[53] Fix | Delete
'[keyword echo] [string "aaa\\$aaaa[[asd]]aaa.aaa"];',
[54] Fix | Delete
'[keyword echo] [string "aaa{\\$aaaa->aaa.aaa"];',
[55] Fix | Delete
'[keyword echo] [string "aaa{\\$aaaa[[2]]aaa.aaa"];',
[56] Fix | Delete
'[keyword echo] [string "aaa{\\aaaaa[[asd]]aaa.aaa"];',
[57] Fix | Delete
'[keyword echo] [string "aaa\\${aaaa->aaa.aaa"];',
[58] Fix | Delete
'[keyword echo] [string "aaa\\${aaaa[[2]]aaa.aaa"];',
[59] Fix | Delete
'[keyword echo] [string "aaa\\${aaaa[[asd]]aaa.aaa"];',
[60] Fix | Delete
'[meta ?>]');
[61] Fix | Delete
[62] Fix | Delete
MT('variable_interpolation_complex_syntax_1',
[63] Fix | Delete
'[meta <?php]',
[64] Fix | Delete
'[keyword echo] [string "aaa][variable-2 $]{[variable aaaa]}[string ->aaa.aaa"];',
[65] Fix | Delete
'[keyword echo] [string "aaa][variable-2 $]{[variable-2 $aaaa]}[string ->aaa.aaa"];',
[66] Fix | Delete
'[keyword echo] [string "aaa][variable-2 $]{[variable-2 $aaaa][[',' [number 42]',']]}[string ->aaa.aaa"];',
[67] Fix | Delete
'[keyword echo] [string "aaa][variable-2 $]{[variable aaaa][meta ?>]aaaaaa');
[68] Fix | Delete
[69] Fix | Delete
MT('variable_interpolation_complex_syntax_2',
[70] Fix | Delete
'[meta <?php] [comment /* Monsters */]',
[71] Fix | Delete
'[keyword echo] [string "][variable-2 $]{[variable aaa][comment /*}?>} $aaa<?php } */]}[string ->aaa.aaa"];',
[72] Fix | Delete
'[keyword echo] [string "][variable-2 $]{[variable aaa][comment /*}?>*/][[',' [string "aaa][variable-2 $aaa][string {}][variable-2 $]{[variable aaa]}[string "]',']]}[string ->aaa.aaa"];',
[73] Fix | Delete
'[keyword echo] [string "][variable-2 $]{[variable aaa][comment /*} } $aaa } */]}[string ->aaa.aaa"];');
[74] Fix | Delete
[75] Fix | Delete
[76] Fix | Delete
function build_recursive_monsters(nt, t, n){
[77] Fix | Delete
var monsters = [t];
[78] Fix | Delete
for (var i = 1; i <= n; ++i)
[79] Fix | Delete
monsters[i] = nt.join(monsters[i - 1]);
[80] Fix | Delete
return monsters;
[81] Fix | Delete
}
[82] Fix | Delete
[83] Fix | Delete
var m1 = build_recursive_monsters(
[84] Fix | Delete
['[string "][variable-2 $]{[variable aaa] [operator +] ', '}[string "]'],
[85] Fix | Delete
'[comment /* }?>} */] [string "aaa][variable-2 $aaa][string .aaa"]',
[86] Fix | Delete
10
[87] Fix | Delete
);
[88] Fix | Delete
[89] Fix | Delete
MT('variable_interpolation_complex_syntax_3_1',
[90] Fix | Delete
'[meta <?php] [comment /* Recursive monsters */]',
[91] Fix | Delete
'[keyword echo] ' + m1[4] + ';',
[92] Fix | Delete
'[keyword echo] ' + m1[7] + ';',
[93] Fix | Delete
'[keyword echo] ' + m1[8] + ';',
[94] Fix | Delete
'[keyword echo] ' + m1[5] + ';',
[95] Fix | Delete
'[keyword echo] ' + m1[1] + ';',
[96] Fix | Delete
'[keyword echo] ' + m1[6] + ';',
[97] Fix | Delete
'[keyword echo] ' + m1[9] + ';',
[98] Fix | Delete
'[keyword echo] ' + m1[0] + ';',
[99] Fix | Delete
'[keyword echo] ' + m1[10] + ';',
[100] Fix | Delete
'[keyword echo] ' + m1[2] + ';',
[101] Fix | Delete
'[keyword echo] ' + m1[3] + ';',
[102] Fix | Delete
'[keyword echo] [string "end"];',
[103] Fix | Delete
'[meta ?>]');
[104] Fix | Delete
[105] Fix | Delete
var m2 = build_recursive_monsters(
[106] Fix | Delete
['[string "a][variable-2 $]{[variable aaa] [operator +] ', ' [operator +] ', '}[string .a"]'],
[107] Fix | Delete
'[comment /* }?>{{ */] [string "a?>}{{aa][variable-2 $aaa][string .a}a?>a"]',
[108] Fix | Delete
5
[109] Fix | Delete
);
[110] Fix | Delete
[111] Fix | Delete
MT('variable_interpolation_complex_syntax_3_2',
[112] Fix | Delete
'[meta <?php] [comment /* Recursive monsters 2 */]',
[113] Fix | Delete
'[keyword echo] ' + m2[0] + ';',
[114] Fix | Delete
'[keyword echo] ' + m2[1] + ';',
[115] Fix | Delete
'[keyword echo] ' + m2[5] + ';',
[116] Fix | Delete
'[keyword echo] ' + m2[4] + ';',
[117] Fix | Delete
'[keyword echo] ' + m2[2] + ';',
[118] Fix | Delete
'[keyword echo] ' + m2[3] + ';',
[119] Fix | Delete
'[keyword echo] [string "end"];',
[120] Fix | Delete
'[meta ?>]');
[121] Fix | Delete
[122] Fix | Delete
function build_recursive_monsters_2(mf1, mf2, nt, t, n){
[123] Fix | Delete
var monsters = [t];
[124] Fix | Delete
for (var i = 1; i <= n; ++i)
[125] Fix | Delete
monsters[i] = nt[0] + mf1[i - 1] + nt[1] + mf2[i - 1] + nt[2] + monsters[i - 1] + nt[3];
[126] Fix | Delete
return monsters;
[127] Fix | Delete
}
[128] Fix | Delete
[129] Fix | Delete
var m3 = build_recursive_monsters_2(
[130] Fix | Delete
m1,
[131] Fix | Delete
m2,
[132] Fix | Delete
['[string "a][variable-2 $]{[variable aaa] [operator +] ', ' [operator +] ', ' [operator +] ', '}[string .a"]'],
[133] Fix | Delete
'[comment /* }?>{{ */] [string "a?>}{{aa][variable-2 $aaa][string .a}a?>a"]',
[134] Fix | Delete
4
[135] Fix | Delete
);
[136] Fix | Delete
[137] Fix | Delete
MT('variable_interpolation_complex_syntax_3_3',
[138] Fix | Delete
'[meta <?php] [comment /* Recursive monsters 2 */]',
[139] Fix | Delete
'[keyword echo] ' + m3[4] + ';',
[140] Fix | Delete
'[keyword echo] ' + m3[0] + ';',
[141] Fix | Delete
'[keyword echo] ' + m3[3] + ';',
[142] Fix | Delete
'[keyword echo] ' + m3[1] + ';',
[143] Fix | Delete
'[keyword echo] ' + m3[2] + ';',
[144] Fix | Delete
'[keyword echo] [string "end"];',
[145] Fix | Delete
'[meta ?>]');
[146] Fix | Delete
[147] Fix | Delete
MT("variable_interpolation_heredoc",
[148] Fix | Delete
"[meta <?php]",
[149] Fix | Delete
"[string <<<here]",
[150] Fix | Delete
"[string doc ][variable-2 $]{[variable yay]}[string more]",
[151] Fix | Delete
"[string here]; [comment // normal]");
[152] Fix | Delete
})();
[153] Fix | Delete
[154] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function