| Index: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/parser/Parser.java
|
| diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/parser/Parser.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/parser/Parser.java
|
| index 53b22c84863973e349b6b1e586b948707febda33..2cb03db2e570db2319d5e282575f22a26992ad87 100644
|
| --- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/parser/Parser.java
|
| +++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/parser/Parser.java
|
| @@ -5603,12 +5603,14 @@ public class Parser {
|
| Matcher matcher = TodoCode.TODO_REGEX.matcher(commentToken.getLexeme());
|
|
|
| if (matcher.find()) {
|
| + int offset = commentToken.getOffset() + matcher.start() + matcher.group(1).length();
|
| + int length = matcher.group(2).length();
|
| errorListener.onError(new AnalysisError(
|
| source,
|
| - commentToken.getOffset() + matcher.start(1),
|
| - matcher.end(1) - matcher.start(1),
|
| + offset,
|
| + length,
|
| TodoCode.TODO,
|
| - matcher.group(1)));
|
| + matcher.group(2)));
|
| }
|
| }
|
|
|
|
|