Merge pull request #638 from RBotfield/add-php-file-extensions

Add extra PHP file extensions to the language guesser.
pull/684/head
Wilfred Hughes 2024-03-25 22:04:45 +07:00 committed by GitHub
commit 415c591875
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

@ -330,7 +330,9 @@ 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"],