Skip to content

Commit 2b1decd

Browse files
committed
Fix reset() overrides to deal with `lastSymbol'
1 parent 5e34552 commit 2b1decd

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/org/opensolaris/opengrok/analysis/perl/PerlSymbolTokenizer.lex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ import org.opensolaris.opengrok.web.Util;
6060
public void reset() throws IOException {
6161
super.reset();
6262
h.reset();
63+
lastSymbol = null;
6364
}
6465

6566
@Override

src/org/opensolaris/opengrok/analysis/ruby/RubySymbolTokenizer.lex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ import org.opensolaris.opengrok.web.Util;
6363
super.reset();
6464
if (helpers != null) helpers.clear();
6565
h.reset();
66+
lastSymbol = null;
6667
}
6768

6869
@Override

0 commit comments

Comments
 (0)