]> source.dussan.org Git - aspectj.git/commitdiff
Fixed minor bug here. Lack of 'continue' meant the sequence:
authoraclement <aclement>
Wed, 11 Aug 2004 13:17:43 +0000 (13:17 +0000)
committeraclement <aclement>
Wed, 11 Aug 2004 13:17:43 +0000 (13:17 +0000)
: "message";
was being tokenized as:
token<:>  token<message> token<"> token<;>
rather than
token<:>  token<message> token<;>

weaver/src/org/aspectj/weaver/patterns/BasicTokenSource.java

index c267116b14554dc2175ceed74bb90f734261c3f2..5cfdc6a4a628dd280e250306864dfd3438c010f8 100644 (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++; }