Open "crontab" file by using syntax highlighting of bash

Fix #3377, close #10943
This commit is contained in:
Don Ho 2021-12-24 02:23:50 +01:00
parent 30c586d94c
commit a563a8b812
1 changed files with 2 additions and 0 deletions

View File

@ -222,6 +222,8 @@ void Buffer::setFileName(const TCHAR *fn, LangType defaultLang)
newLang = L_PYTHON;
else if ((OrdinalIgnoreCaseCompareStrings(_fileName, TEXT("Rakefile")) == 0) || (OrdinalIgnoreCaseCompareStrings(_fileName, TEXT("Vagrantfile")) == 0))
newLang = L_RUBY;
else if ((OrdinalIgnoreCaseCompareStrings(_fileName, TEXT("crontab")) == 0))
newLang = L_BASH;
}
updateTimeStamp();