Skip to content

Commit def7063

Browse files
TimothyGumarijnh
authored andcommitted
[webidl mode] Remove unnecessary pos saving
1 parent adb73ff commit def7063

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

mode/webidl/webidl.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,12 @@ function readToken(stream, state) {
122122
if (stream.match(strings)) return "string";
123123

124124
// identifier
125-
var pos = stream.pos;
126125
if (stream.match(identifiers)) {
127126
if (state.startDef) return "def";
128127
if (state.endDef && stream.match(/^\s*;/, false)) {
129128
state.endDef = false;
130129
return "def";
131130
}
132-
stream.pos = pos;
133131
}
134132

135133
if (stream.match(keywords)) return "keyword";

0 commit comments

Comments
 (0)