diff --git a/PowerEditor/src/ScitillaComponent/Buffer.cpp b/PowerEditor/src/ScitillaComponent/Buffer.cpp index e8c92e305..ea997d9b8 100644 --- a/PowerEditor/src/ScitillaComponent/Buffer.cpp +++ b/PowerEditor/src/ScitillaComponent/Buffer.cpp @@ -213,7 +213,7 @@ void Buffer::setFileName(const TCHAR *fn, LangType defaultLang) newLang = L_CMAKE; else if ((!generic_stricmp(_fileName, TEXT("SConstruct"))) || (!generic_stricmp(_fileName, TEXT("SConscript"))) || (!generic_stricmp(_fileName, TEXT("wscript")))) newLang = L_PYTHON; - else if (!generic_stricmp(_fileName, TEXT("Rakefile"))) + else if ((!generic_stricmp(_fileName, TEXT("Rakefile"))) || (!generic_stricmp(_fileName, TEXT("Vagrantfile")))) newLang = L_RUBY; } @@ -1584,4 +1584,4 @@ int FileManager::docLength(Buffer* buffer) const int docLen = _pscratchTilla->getCurrentDocLen(); _pscratchTilla->execute(SCI_SETDOCPOINTER, 0, _scratchDocDefault); return docLen; -} \ No newline at end of file +}