Replacing codemirror ver 0.93 by ver 3.13 and using it in PM.
This commit is contained in:
2
gulliver/js/codemirror/mode/php/php.js
vendored
2
gulliver/js/codemirror/mode/php/php.js
vendored
@@ -57,6 +57,7 @@
|
||||
function dispatch(stream, state) {
|
||||
var isPHP = state.curMode == phpMode;
|
||||
if (stream.sol() && state.pending != '"') state.pending = null;
|
||||
|
||||
if (!isPHP) {
|
||||
if (stream.match(/^<\?\w*/)) {
|
||||
state.curMode = phpMode;
|
||||
@@ -80,6 +81,7 @@
|
||||
state.pending = null;
|
||||
var cur = stream.current(), openPHP = cur.search(/<\?/);
|
||||
if (openPHP != -1) {
|
||||
alert("openPHP");
|
||||
if (style == "string" && /\"$/.test(cur) && !/\?>/.test(cur)) state.pending = '"';
|
||||
else state.pending = {end: stream.pos, style: style};
|
||||
stream.backUp(cur.length - openPHP);
|
||||
|
||||
Reference in New Issue
Block a user