Start work on ERB language support
This commit is contained in:
parent
7301ab4f44
commit
be6ee3cbff
7 changed files with 50 additions and 10 deletions
|
@ -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(|| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue