Skip to content

Commit

Permalink
Add tex and bib as language IDs
Browse files Browse the repository at this point in the history
Several LSP clients (such as vim's) send `tex` and `bib` as language IDs.
Thus, this improves client support.
  • Loading branch information
rliang authored May 28, 2019
1 parent 840f13a commit 53a3d6b
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 53a3d6b

Please sign in to comment.