Start work on ERB language support

This commit is contained in:
Max Brunsfeld 2022-11-03 16:02:29 -07:00
parent 7301ab4f44
commit be6ee3cbff
7 changed files with 50 additions and 10 deletions

View file

@ -961,7 +961,7 @@ fn get_injections(
}
prev_match = Some((mat.pattern_index, content_range.clone()));
let language_name = config.languages_by_pattern_ix[mat.pattern_index]
let language_name = config.patterns[mat.pattern_index].language
.as_ref()
.map(|s| Cow::Borrowed(s.as_ref()))
.or_else(|| {