Link Here
|
355 |
this.scanner.resetTo(this.index, this.javadocEnd); |
355 |
this.scanner.resetTo(this.index, this.javadocEnd); |
356 |
return true; |
356 |
return true; |
357 |
} |
357 |
} |
|
|
358 |
this.tagValue = TAG_OTHERS_VALUE; // tag is invalid, do not keep the parsed tag value |
358 |
return false; |
359 |
return false; |
359 |
} |
360 |
} |
360 |
|
361 |
|
Link Here
|
381 |
} |
382 |
} |
382 |
this.scanner.resetTo(this.tagSourceEnd+1, this.javadocEnd); |
383 |
this.scanner.resetTo(this.tagSourceEnd+1, this.javadocEnd); |
383 |
} |
384 |
} |
|
|
385 |
this.tagValue = TAG_OTHERS_VALUE; // tag is invalid, do not keep the parsed tag value |
384 |
} |
386 |
} |
385 |
return valid; |
387 |
return valid; |
386 |
} |
388 |
} |
Link Here
|
393 |
if (!valid) { |
395 |
if (!valid) { |
394 |
this.scanner.resetTo(this.tagSourceEnd+1, this.javadocEnd); |
396 |
this.scanner.resetTo(this.tagSourceEnd+1, this.javadocEnd); |
395 |
this.index = this.tagSourceEnd+1; |
397 |
this.index = this.tagSourceEnd+1; |
|
|
398 |
this.tagValue = TAG_OTHERS_VALUE; // tag is invalid, do not keep the parsed tag value |
396 |
} |
399 |
} |
397 |
return valid; |
400 |
return valid; |
398 |
} |
401 |
} |
Link Here
|
504 |
if (length == TAG_LINK_LENGTH && CharOperation.equals(TAG_LINK, tagName)) { |
507 |
if (length == TAG_LINK_LENGTH && CharOperation.equals(TAG_LINK, tagName)) { |
505 |
this.tagValue = TAG_LINK_VALUE; |
508 |
this.tagValue = TAG_LINK_VALUE; |
506 |
if (this.inlineTagStarted || (this.kind & COMPLETION_PARSER) != 0) { |
509 |
if (this.inlineTagStarted || (this.kind & COMPLETION_PARSER) != 0) { |
507 |
valid= parseReference(); |
510 |
valid = parseReference(); |
508 |
} else { |
511 |
} else { |
509 |
// bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=53290 |
512 |
// bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=53290 |
510 |
// Cannot have @link outside inline comment |
513 |
// Cannot have @link outside inline comment |
Link Here
|
603 |
} else if (this.invalidTagName) { |
606 |
} else if (this.invalidTagName) { |
604 |
this.textStart = previousPosition; |
607 |
this.textStart = previousPosition; |
605 |
} else if (this.astPtr == ptr) { |
608 |
} else if (this.astPtr == ptr) { |
606 |
this.tagValue = TAG_OTHERS_VALUE; // tag is invalid, do not keep the parsed tag value |
|
|
607 |
createTag(); |
609 |
createTag(); |
608 |
} |
610 |
} |
609 |
return true; |
611 |
return true; |
Link Here
|
618 |
// If invalid, restart from the end tag position |
620 |
// If invalid, restart from the end tag position |
619 |
this.scanner.resetTo(this.tagSourceEnd+1, this.javadocEnd); |
621 |
this.scanner.resetTo(this.tagSourceEnd+1, this.javadocEnd); |
620 |
this.index = this.tagSourceEnd+1; |
622 |
this.index = this.tagSourceEnd+1; |
|
|
623 |
this.tagValue = TAG_OTHERS_VALUE; // tag is invalid, do not keep the parsed tag value |
621 |
} |
624 |
} |
622 |
return valid; |
625 |
return valid; |
623 |
} |
626 |
} |