forked from phoedos/pmd
[lua] Fix compile errors
This commit is contained in:
@ -10,8 +10,10 @@ import org.antlr.v4.runtime.CharStream;
|
|||||||
import org.antlr.v4.runtime.Lexer;
|
import org.antlr.v4.runtime.Lexer;
|
||||||
|
|
||||||
import net.sourceforge.pmd.cpd.internal.AntlrTokenizer;
|
import net.sourceforge.pmd.cpd.internal.AntlrTokenizer;
|
||||||
import net.sourceforge.pmd.lang.lua.ast.LuaLexer;
|
|
||||||
import net.sourceforge.pmd.cpd.token.AntlrTokenFilter;
|
import net.sourceforge.pmd.cpd.token.AntlrTokenFilter;
|
||||||
|
import net.sourceforge.pmd.lang.ast.impl.antlr4.AntlrToken;
|
||||||
|
import net.sourceforge.pmd.lang.ast.impl.antlr4.AntlrTokenManager;
|
||||||
|
import net.sourceforge.pmd.lang.lua.ast.LuaLexer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Lua Tokenizer
|
* The Lua Tokenizer
|
||||||
@ -37,6 +39,7 @@ public class LuaTokenizer extends AntlrTokenizer {
|
|||||||
@Override
|
@Override
|
||||||
protected Lexer getLexerForSource(CharStream charStream) {
|
protected Lexer getLexerForSource(CharStream charStream) {
|
||||||
return new LuaLexer(charStream);
|
return new LuaLexer(charStream);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected AntlrTokenFilter getTokenFilter(final AntlrTokenManager tokenManager) {
|
protected AntlrTokenFilter getTokenFilter(final AntlrTokenManager tokenManager) {
|
||||||
|
@ -1,23 +1,23 @@
|
|||||||
[Image] or [Truncated image[ Bcol Ecol
|
[Image] or [Truncated image[ Bcol Ecol
|
||||||
L3
|
L3
|
||||||
[print] 1 5
|
[print] 1 6
|
||||||
[(] 6 6
|
[(] 6 7
|
||||||
[1] 7 7
|
[1] 7 8
|
||||||
[)] 18 18
|
[)] 18 19
|
||||||
L6
|
L6
|
||||||
[print] 1 5
|
[print] 1 6
|
||||||
[(] 6 6
|
[(] 6 7
|
||||||
[1] 7 7
|
[1] 7 8
|
||||||
[)] 8 8
|
[)] 8 9
|
||||||
L9
|
L9
|
||||||
[print] 1 5
|
[print] 1 6
|
||||||
[(] 6 6
|
[(] 6 7
|
||||||
[1] 7 7
|
[1] 7 8
|
||||||
L10
|
L10
|
||||||
[)] 17 17
|
[)] 17 18
|
||||||
L13
|
L13
|
||||||
[print] 1 5
|
[print] 1 6
|
||||||
[(] 6 6
|
[(] 6 7
|
||||||
[1] 7 7
|
[1] 7 8
|
||||||
[)] 8 8
|
[)] 8 9
|
||||||
EOF
|
EOF
|
||||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user