From baa42daae8cbedf2a128ee964b82abc47718361e Mon Sep 17 00:00:00 2001 From: rofl0r Date: Wed, 2 Jan 2013 15:03:17 +0100 Subject: [PATCH 1/2] languages.yml: add .dpr and .dfm extension to Delphi .dfm is Delphi formulars .dpr is the main source file, before any .pas. if your Delphi app does not use any formulars or units (e.g. console app), there is basically only one .dpr file. --- lib/linguist/languages.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index 8b6d0831..31b4bb74 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -344,6 +344,8 @@ Delphi: color: "#b0ce4e" primary_extension: .pas extensions: + - .dpr + - .dfm - .lpr - .pas From d2e909677b7213e819a069911b3d62fbdbc711cb Mon Sep 17 00:00:00 2001 From: rofl0r Date: Wed, 2 Jan 2013 15:27:28 +0100 Subject: [PATCH 2/2] languages.yml: rearrange .dpr and .dfm --- lib/linguist/languages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index 31b4bb74..0fe7250f 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -344,8 +344,8 @@ Delphi: color: "#b0ce4e" primary_extension: .pas extensions: - - .dpr - .dfm + - .dpr - .lpr - .pas