Commit 4e13b46
committed
Extract implicit fuzzy indent blacklist patterns
Meikel started the fuzzy indent feature as a simple match against def.*,
let.*, and with.*. Then he added exceptions for syms ending in -fn, and
then a special case match for 'with-meta'.
After this, the fuzzy indent patterns were made a public option, but the
hardcoded exceptions remained. This commit finishes this refactoring and
gives full control to the user.
The new blacklist, and the former pattern whitelist are now lists by
default to allow for any kind of pattern (e.g. '\V\cFOO'), instead of an
implicitly anchored one that cannot be preceded by pattern modifiers.
The old string options are supported for backwards compatibility.
Addresses #71 parent 2b8c2dc commit 4e13b46
1 file changed
Lines changed: 21 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
40 | 44 | | |
41 | 45 | | |
42 | 46 | | |
| |||
64 | 68 | | |
65 | 69 | | |
66 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
67 | 83 | | |
68 | 84 | | |
69 | 85 | | |
| |||
271 | 287 | | |
272 | 288 | | |
273 | 289 | | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
282 | 293 | | |
283 | 294 | | |
284 | 295 | | |
| |||
0 commit comments