forked from phoedos/pmd
[lua] Fix compile errors
This commit is contained in:
parent
c0dff0d75a
commit
ad7ac9be5f
@ -10,8 +10,10 @@ import org.antlr.v4.runtime.CharStream;
|
||||
import org.antlr.v4.runtime.Lexer;
|
||||
|
||||
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.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
|
||||
@ -37,6 +39,7 @@ public class LuaTokenizer extends AntlrTokenizer {
|
||||
@Override
|
||||
protected Lexer getLexerForSource(CharStream charStream) {
|
||||
return new LuaLexer(charStream);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected AntlrTokenFilter getTokenFilter(final AntlrTokenManager tokenManager) {
|
||||
|
@ -1,23 +1,23 @@
|
||||
[Image] or [Truncated image[ Bcol Ecol
|
||||
L3
|
||||
[print] 1 5
|
||||
[(] 6 6
|
||||
[1] 7 7
|
||||
[)] 18 18
|
||||
[print] 1 6
|
||||
[(] 6 7
|
||||
[1] 7 8
|
||||
[)] 18 19
|
||||
L6
|
||||
[print] 1 5
|
||||
[(] 6 6
|
||||
[1] 7 7
|
||||
[)] 8 8
|
||||
[print] 1 6
|
||||
[(] 6 7
|
||||
[1] 7 8
|
||||
[)] 8 9
|
||||
L9
|
||||
[print] 1 5
|
||||
[(] 6 6
|
||||
[1] 7 7
|
||||
[print] 1 6
|
||||
[(] 6 7
|
||||
[1] 7 8
|
||||
L10
|
||||
[)] 17 17
|
||||
[)] 17 18
|
||||
L13
|
||||
[print] 1 5
|
||||
[(] 6 6
|
||||
[1] 7 7
|
||||
[)] 8 8
|
||||
[print] 1 6
|
||||
[(] 6 7
|
||||
[1] 7 8
|
||||
[)] 8 9
|
||||
EOF
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user