Fix things
This commit is contained in:
@ -39,7 +39,7 @@ public class AntlrToken implements GenericToken<AntlrToken> {
|
||||
this.textDoc = textDoc;
|
||||
this.image = behavior.getTokenImage(token);
|
||||
this.startOffset = token.getStartIndex();
|
||||
this.endOffset = token.getStopIndex();
|
||||
this.endOffset = token.getStopIndex() + 1; // exclusive
|
||||
this.channel = token.getChannel();
|
||||
this.kind = token.getType();
|
||||
}
|
||||
|
@ -46,8 +46,8 @@ public class PLSQLCpdLexer extends JavaccCpdLexer {
|
||||
|| plsqlToken.kind == PLSQLTokenKinds.CHARACTER_LITERAL
|
||||
|| plsqlToken.kind == PLSQLTokenKinds.STRING_LITERAL
|
||||
|| plsqlToken.kind == PLSQLTokenKinds.QUOTED_LITERAL)) {
|
||||
// note that all tokens kinds are mapped to the same type.
|
||||
image = "<literal>";
|
||||
// the token kind is preserved
|
||||
image = String.valueOf(plsqlToken.kind);
|
||||
} else if (plsqlToken.kind != PLSQLTokenKinds.CHARACTER_LITERAL
|
||||
&& plsqlToken.kind != PLSQLTokenKinds.STRING_LITERAL
|
||||
&& plsqlToken.kind != PLSQLTokenKinds.QUOTED_LITERAL) {
|
||||
|
Reference in New Issue
Block a user