diff options
author | David Peter <sharkdp@users.noreply.github.com> | 2024-02-23 21:50:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-23 21:50:55 +0100 |
commit | 5c2cc5388273b8f3f7fe46380b0156314a7b9750 (patch) | |
tree | e5223daf997a61addbcfadced3a457572c73e10a | |
parent | 85a549e293d7b1a0b1cafa4713fa2205cd00f26a (diff) | |
parent | a6f01af8de18b1538103bc3201e4a72d94fd7351 (diff) |
Merge pull request #2867 from cyqsimon/containers-conf
Map containers `.conf` files to TOML syntax
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | src/syntax_mapping/builtins/linux/50-containers.toml | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index a17726fd..7498b412 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,7 @@ - `cmd-help`: scope subcommands followed by other terms, and other misc improvements, see #2819 (@victor-gp) - Upgrade JQ syntax, see #2820 (@dependabot[bot]) +- Map containers .conf files to TOML syntax #2867 (@cyqsimon) - Associate `xsh` files with `xonsh` syntax that is Python, see #2840 (@anki-code). - Added auto detect syntax for `.jsonc` #2795 (@mxaddict) - Added auto detect syntax for `.aws/{config,credentials}` #2795 (@mxaddict) diff --git a/src/syntax_mapping/builtins/linux/50-containers.toml b/src/syntax_mapping/builtins/linux/50-containers.toml new file mode 100644 index 00000000..b7170b87 --- /dev/null +++ b/src/syntax_mapping/builtins/linux/50-containers.toml @@ -0,0 +1,8 @@ +# see https://github.com/containers/image/tree/main/docs +[mappings] +"TOML" = [ + "/usr/share/containers/**/*.conf", + "/etc/containers/**/*.conf", + "${HOME}/.config/containers/**/*.conf", + "${XDG_CONFIG_HOME}/containers/**/*.conf", +] |