Skip to content
Snippets Groups Projects
Commit 71406555 authored by Marijn Haverbeke's avatar Marijn Haverbeke
Browse files

[stex mode] Reposition some else lines to match coding style

parent 3e4c5d21
No related branches found
No related tags found
No related merge requests found
......@@ -130,8 +130,7 @@
if (ch == "%") {
source.skipToEnd();
return "comment";
}
else if (ch == '}' || ch == ']') {
} else if (ch == '}' || ch == ']') {
plug = peekCommand(state);
if (plug) {
plug.closeBracket(ch);
......@@ -145,12 +144,10 @@
plug = new plug();
pushCommand(state, plug);
return "bracket";
}
else if (/\d/.test(ch)) {
} else if (/\d/.test(ch)) {
source.eatWhile(/[\w.%]/);
return "atom";
}
else {
} else {
source.eatWhile(/[\w\-_]/);
plug = getMostPowerful(state);
if (plug.name == 'begin') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment