summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@users.sourceforge.net>2013-04-06 12:17:32 +0300
committerXhmikosR <xhmikosr@users.sourceforge.net>2013-04-06 12:17:32 +0300
commite7abdebe9de59cb3eb672e29adfc0f54c461621d (patch)
treebdbde6daa90ec80a10e2f67f7e5068d9517602f2
parent39865d483eed07ea7baba2b524c4f8a945c3ab6f (diff)
downloadnotepad2-mod-e7abdebe9de59cb3eb672e29adfc0f54c461621d.zip
notepad2-mod-e7abdebe9de59cb3eb672e29adfc0f54c461621d.tar.gz
notepad2-mod-e7abdebe9de59cb3eb672e29adfc0f54c461621d.tar.bz2
detect rakefile files as Ruby
-rw-r--r--src/Styles.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Styles.c b/src/Styles.c
index d9ffb4c..b196e6d 100644
--- a/src/Styles.c
+++ b/src/Styles.c
@@ -2764,6 +2764,12 @@ void Style_SetLexerFromFile(HWND hwnd,LPCWSTR lpszFile)
}
if (!bFound && bAutoSelect &&
+ lstrcmpi(PathFindFileName(lpszFile),L"rakefile") == 0) {
+ pLexNew = &lexRUBY;
+ bFound = TRUE;
+ }
+
+ if (!bFound && bAutoSelect &&
lstrcmpi(PathFindFileName(lpszFile),L"mozconfig") == 0) {
pLexNew = &lexBASH;
bFound = TRUE;