diff --git a/CHANGELOG.md b/CHANGELOG.md index b05bf87e9b..da3a6414c0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ - Associate `os-release` with `bash` syntax, see #2587 (@cyqsimon) - Associate `Containerfile` with `Dockerfile` syntax, see #2606 (@einfachIrgendwer0815) - 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 cc69f92752..976fa620a5 100644 --- a/src/syntax_mapping.rs +++ b/src/syntax_mapping.rs @@ -152,6 +152,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) =