diff options
-rw-r--r-- | src/Styles.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Styles.c b/src/Styles.c index d26938f..d9ffb4c 100644 --- a/src/Styles.c +++ b/src/Styles.c @@ -2763,6 +2763,12 @@ void Style_SetLexerFromFile(HWND hwnd,LPCWSTR lpszFile) bFound = TRUE;
}
+ if (!bFound && bAutoSelect &&
+ lstrcmpi(PathFindFileName(lpszFile),L"mozconfig") == 0) {
+ pLexNew = &lexBASH;
+ bFound = TRUE;
+ }
+
if (!bFound && bAutoSelect && (!fNoHTMLGuess || !fNoCGIGuess)) {
char tchText[512];
SendMessage(hwnd,SCI_GETTEXT,(WPARAM)COUNTOF(tchText)-1,(LPARAM)tchText);
|