Add extra PHP file extensions to the language guesser.

pull/638/head
Rhys Botfield 2024-02-09 14:43:20 +07:00
parent 6cc1a5f3e3
commit 55b9630069
1 changed files with 1 additions and 1 deletions

@ -326,7 +326,7 @@ pub(crate) fn language_globs(language: Language) -> Vec<glob::Pattern> {
OCamlInterface => &["*.mli"],
Pascal => &["*.pas", "*.dfm", "*.dpr", "*.lpr", "*.pascal"],
Perl => &["*.pm", "*.pl"],
Php => &["*.php"],
Php => &["*.php", "*.phtml", "*.php3", "*.php4", "*.php5", "*.php7", "*.phps"],
Python => &["*.py", "*.py3", "*.pyi", "*.bzl", "TARGETS", "BUCK", "DEPS"],
Qml => &["*.qml"],
R => &["*.R", "*.r", "*.rd", "*.rsx", ".Rprofile", "expr-dist"],