mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
handle the \feynmandiagram command in code check
pulled from our ace repository https://github.com/sharelatex/ace commit baeb9aff561d048b8a839683261ffdf149ecd4ef
This commit is contained in:
parent
3bf19a38ee
commit
13492c7fc4
1 changed files with 2 additions and 2 deletions
|
@ -1931,7 +1931,7 @@ var InterpretTokens = function (TokeniseResult, ErrorReporter) {
|
||||||
if (newPos === null) { continue; } else {i = newPos;};
|
if (newPos === null) { continue; } else {i = newPos;};
|
||||||
} else if (seq === "hbox" || seq === "text" || seq === "mbox" || seq === "footnote" || seq === "intertext" || seq === "shortintertext" || seq === "textnormal" || seq === "tag" || seq === "reflectbox" || seq === "textrm") {
|
} else if (seq === "hbox" || seq === "text" || seq === "mbox" || seq === "footnote" || seq === "intertext" || seq === "shortintertext" || seq === "textnormal" || seq === "tag" || seq === "reflectbox" || seq === "textrm") {
|
||||||
nextGroupMathMode = false;
|
nextGroupMathMode = false;
|
||||||
} else if (seq === "rotatebox" || seq === "scalebox") {
|
} else if (seq === "rotatebox" || seq === "scalebox" || seq == "feynmandiagram") {
|
||||||
newPos = readOptionalGeneric(TokeniseResult, i);
|
newPos = readOptionalGeneric(TokeniseResult, i);
|
||||||
if (newPos === null) { /* do nothing */ } else {i = newPos;};
|
if (newPos === null) { /* do nothing */ } else {i = newPos;};
|
||||||
newPos = readDefinition(TokeniseResult, i);
|
newPos = readDefinition(TokeniseResult, i);
|
||||||
|
@ -2179,7 +2179,7 @@ var EnvHandler = function (ErrorReporter) {
|
||||||
this._beginMathMode = function (thisEnv) {
|
this._beginMathMode = function (thisEnv) {
|
||||||
var currentMathMode = this.getMathMode(); // undefined, null, $, $$, name of mathmode env
|
var currentMathMode = this.getMathMode(); // undefined, null, $, $$, name of mathmode env
|
||||||
if (currentMathMode) {
|
if (currentMathMode) {
|
||||||
ErrorFrom(thisEnv, thisEnv.name + " used inside existing math mode " + getName(currentMathMode),
|
ErrorFrom(thisEnv, getName(thisEnv) + " used inside existing math mode " + getName(currentMathMode),
|
||||||
{suppressIfEditing:true, errorAtStart: true, mathMode:true});
|
{suppressIfEditing:true, errorAtStart: true, mathMode:true});
|
||||||
};
|
};
|
||||||
thisEnv.mathMode = thisEnv;
|
thisEnv.mathMode = thisEnv;
|
||||||
|
|
Loading…
Reference in a new issue