Browse Source

Fixed minor bug here. Lack of 'continue' meant the sequence:

: "message";
was being tokenized as:
token<:>  token<message> token<"> token<;>
rather than
token<:>  token<message> token<;>
tags/for_ajdt1_1_12
aclement 20 years ago
parent
commit
0f21863d24
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      weaver/src/org/aspectj/weaver/patterns/BasicTokenSource.java

+ 1
- 0
weaver/src/org/aspectj/weaver/patterns/BasicTokenSource.java View File

@@ -124,6 +124,7 @@ public class BasicTokenSource implements ITokenSource {
while (i < chars.length && !(chars[i]=='\"')) i++;
i += 1;
tokens.add(BasicToken.makeLiteral(new String(chars, start0+1, i-start0-2), "string", start0, i-1));
continue;
default:
int start = i-1;
while (i < chars.length && Character.isJavaIdentifierPart(chars[i])) { i++; }

Loading…
Cancel
Save