OLD | NEW |
| 1 ## 1.0.2 |
| 2 |
| 3 * `SpanScanner` no longer crashes when creating a span that contains a UTF-16 |
| 4 surrogate pair. |
| 5 |
| 6 ## 1.0.1 |
| 7 |
| 8 * Fix the error text emitted by `StringScanner.expectChar()`. |
| 9 |
| 10 ## 1.0.0 |
| 11 |
| 12 * **Breaking change**: `StringScanner.error()`'s `length` argument now defaults |
| 13 to `0` rather than `1` when no match data is available. |
| 14 |
| 15 * **Breaking change**: `StringScanner.lastMatch` and related methods are now |
| 16 reset when the scanner's position changes without producing a new match. |
| 17 |
| 18 **Note**: While the changes in `1.0.0` are user-visible, they're unlikely to |
| 19 actually break any code in practice. Unless you know that your package is |
| 20 incompatible with 0.1.x, consider using 0.1.5 as your lower bound rather |
| 21 than 1.0.0. For example, `string_scanner: ">=0.1.5 <2.0.0"`. |
| 22 |
| 23 ## 0.1.5 |
| 24 |
| 25 * Add `new SpanScanner.within()`, which scans within a existing `FileSpan`. |
| 26 |
| 27 * Add `StringScanner.scanChar()` and `StringScanner.expectChar()`. |
| 28 |
| 29 ## 0.1.4+1 |
| 30 |
| 31 * Remove the dependency on `path`, since we don't actually import it. |
| 32 |
1 ## 0.1.4 | 33 ## 0.1.4 |
2 | 34 |
3 * Add `new SpanScanner.eager()` for creating a `SpanScanner` that eagerly | 35 * Add `new SpanScanner.eager()` for creating a `SpanScanner` that eagerly |
4 computes its current line and column numbers. | 36 computes its current line and column numbers. |
5 | 37 |
6 ## 0.1.3+2 | 38 ## 0.1.3+2 |
7 | 39 |
8 * Fix `LineScanner`'s handling of carriage returns to match that of | 40 * Fix `LineScanner`'s handling of carriage returns to match that of |
9 `SpanScanner`. | 41 `SpanScanner`. |
10 | 42 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 access to information about the errors that were thrown and can provide | 93 access to information about the errors that were thrown and can provide |
62 terminal-colored messages. | 94 terminal-colored messages. |
63 | 95 |
64 * Add a `LineScanner` subclass of `StringScanner` that automatically tracks line | 96 * Add a `LineScanner` subclass of `StringScanner` that automatically tracks line |
65 and column information of the text being scanned. | 97 and column information of the text being scanned. |
66 | 98 |
67 * Add a `SpanScanner` subclass of `LineScanner` that exposes matched ranges as | 99 * Add a `SpanScanner` subclass of `LineScanner` that exposes matched ranges as |
68 [source map][] `Span` objects. | 100 [source map][] `Span` objects. |
69 | 101 |
70 [source_map]: http://pub.dartlang.org/packages/source_maps | 102 [source_map]: http://pub.dartlang.org/packages/source_maps |
OLD | NEW |