[lua] Fix compile errors

This commit is contained in:
Andreas Dangel 2022-09-30 12:40:24 +02:00
parent c0dff0d75a
commit ad7ac9be5f
No known key found for this signature in database
GPG Key ID: 93450DF2DF9A3FA3
3 changed files with 290 additions and 287 deletions

View File

@ -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) {

View File

@ -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