fix minor issues

This commit is contained in:
Skylot
2014-10-11 22:43:29 +04:00
parent 7f0815a7b2
commit adc32ed319
4 changed files with 17 additions and 5 deletions
@@ -64,6 +64,13 @@ class CodeArea extends RSyntaxTextArea {
private boolean isJumpToken(Token token) {
if (token.getType() == TokenTypes.IDENTIFIER) {
// fast skip
if (token.length() == 1) {
char ch = token.getTextArray()[token.getTextOffset()];
if (ch == '.' || ch == ',' || ch == ';') {
return false;
}
}
Position pos = getPosition(cls, this, token.getOffset());
if (pos != null) {
return true;