OLD | NEW |
| 1 ## 1.0.0 |
| 2 |
| 3 * **Breaking change**: `StringScanner.error()`'s `length` argument now defaults |
| 4 to `0` rather than `1` when no match data is available. |
| 5 |
| 6 * **Breaking change**: `StringScanner.lastMatch` and related methods are now |
| 7 reset when the scanner's position changes without producing a new match. |
| 8 |
| 9 **Note**: While the changes in `1.0.0` are user-visible, they're unlikely to |
| 10 actually break any code in practice. Unless you know that your package is |
| 11 incompatible with 0.1.x, consider using 0.1.5 as your lower bound rather |
| 12 than 1.0.0. For example, `string_scanner: ">=0.1.5 <2.0.0"`. |
| 13 |
1 ## 0.1.5 | 14 ## 0.1.5 |
2 | 15 |
3 * Add `new SpanScanner.within()`, which scans within a existing `FileSpan`. | 16 * Add `new SpanScanner.within()`, which scans within a existing `FileSpan`. |
4 | 17 |
5 * Add `StringScanner.scanChar()` and `StringScanner.expectChar()`. | 18 * Add `StringScanner.scanChar()` and `StringScanner.expectChar()`. |
6 | 19 |
7 ## 0.1.4+1 | 20 ## 0.1.4+1 |
8 | 21 |
9 * Remove the dependency on `path`, since we don't actually import it. | 22 * Remove the dependency on `path`, since we don't actually import it. |
10 | 23 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 access to information about the errors that were thrown and can provide | 84 access to information about the errors that were thrown and can provide |
72 terminal-colored messages. | 85 terminal-colored messages. |
73 | 86 |
74 * Add a `LineScanner` subclass of `StringScanner` that automatically tracks line | 87 * Add a `LineScanner` subclass of `StringScanner` that automatically tracks line |
75 and column information of the text being scanned. | 88 and column information of the text being scanned. |
76 | 89 |
77 * Add a `SpanScanner` subclass of `LineScanner` that exposes matched ranges as | 90 * Add a `SpanScanner` subclass of `LineScanner` that exposes matched ranges as |
78 [source map][] `Span` objects. | 91 [source map][] `Span` objects. |
79 | 92 |
80 [source_map]: http://pub.dartlang.org/packages/source_maps | 93 [source_map]: http://pub.dartlang.org/packages/source_maps |
OLD | NEW |