Commit 02da0ab
authored
Document that token patterns are combinators, not RegExp (#17)
A token pattern is built with the combinator API (seq/oneOf/range/plus/
star/altPattern/…), not a RegExp — `token(/…/)` is a TS2345 type error
since the token-pattern IR migration. Add a short note + a RegExp→
combinator conversion table to the README so adopters coming from regex
know how to write token config. Prompted by #15.1 parent a939fc4 commit 02da0ab
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
272 | 283 | | |
273 | 284 | | |
274 | 285 | | |
| |||
0 commit comments