diff --git a/CHANGELOG.md b/CHANGELOG.md index 51f27b9138..e4d076a3d2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ - Associate `Containerfile` with `Dockerfile` syntax, see #2606 (@einfachIrgendwer0815) - Replaced quotes with double quotes so fzf integration example script works on windows and linux. see #2095 (@johnmatthiggins) - Associate `ksh` files with `bash` syntax, see #2633 (@johnmatthiggins) +- Associate `ron` files with `rust` syntax, see #2427 (@YeungOnion) ## Themes diff --git a/src/syntax_mapping.rs b/src/syntax_mapping.rs index 55506fa4f7..e90a0305e0 100644 --- a/src/syntax_mapping.rs +++ b/src/syntax_mapping.rs @@ -156,6 +156,10 @@ impl<'a> SyntaxMapping<'a> { .insert("*.hook", MappingTarget::MapTo("INI")) .unwrap(); + mapping + .insert("*.ron", MappingTarget::MapTo("Rust")) + .unwrap(); + // Global git config files rooted in `$XDG_CONFIG_HOME/git/` or `$HOME/.config/git/` // See e.g. https://git-scm.com/docs/git-config#FILES if let Some(xdg_config_home) =