We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9296326 commit 2e3df70Copy full SHA for 2e3df70
mode/pegjs/pegjs.js
@@ -31,8 +31,6 @@ CodeMirror.defineMode("pegjs", function (config) {
31
};
32
},
33
token: function (stream, state) {
34
- if (stream)
35
-
36
//check for state changes
37
if (!state.inString && !state.inComment && ((stream.peek() == '"') || (stream.peek() == "'"))) {
38
state.stringType = stream.peek();
@@ -43,7 +41,6 @@ CodeMirror.defineMode("pegjs", function (config) {
43
41
state.inComment = true;
44
42
}
45
46
- //return state
47
if (state.inString) {
48
while (state.inString && !stream.eol()) {
49
if (stream.peek() === state.stringType) {
0 commit comments