Mercurial > hgrepos > Python > libs > ConfigMix
comparison configmix/__init__.py @ 267:d715c10f2930
Allow an alternative to the "-*-ignore-*-" mode line: "-*- ignore -*-" (with spaces)
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Thu, 10 Sep 2020 02:01:28 +0200 |
| parents | 46571485b7d4 |
| children | 1484f6c0223a |
comparison
equal
deleted
inserted
replaced
| 266:46571485b7d4 | 267:d715c10f2930 |
|---|---|
| 203 "toml": _load_toml, | 203 "toml": _load_toml, |
| 204 "conf-toml": _load_toml, | 204 "conf-toml": _load_toml, |
| 205 "javascript": _load_json, | 205 "javascript": _load_json, |
| 206 "json": _load_json, | 206 "json": _load_json, |
| 207 "-*-ignore-*-": _load_ignore, | 207 "-*-ignore-*-": _load_ignore, |
| 208 "-*- ignore -*-": _load_ignore, | |
| 208 } | 209 } |
| 209 """Default associations between file modes and loader functions""" | 210 """Default associations between file modes and loader functions""" |
| 210 | 211 |
| 211 | 212 |
| 212 DEFAULT_ASSOC = [ | 213 DEFAULT_ASSOC = [ |
