Skip to content

Commit

Permalink
Merge pull request #19 from rliang/patch-1
Browse files Browse the repository at this point in the history
Add tex and bib as language IDs
  • Loading branch information
efoerster authored May 28, 2019
2 parents 840f13a + 53a3d6b commit 5cedb89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/syntax/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ impl Language {

pub fn by_language_id(language_id: &str) -> Option<Self> {
match language_id {
"latex" => Some(Language::Latex),
"bibtex" => Some(Language::Bibtex),
"latex" | "tex" => Some(Language::Latex),
"bibtex" | "bib" => Some(Language::Bibtex),
_ => None,
}
}
Expand Down

0 comments on commit 5cedb89

Please sign in to comment.