Detect "Vagrantfile" as Ruby file.

Closes #1981
This commit is contained in:
Mark Raymond 2016-06-20 11:42:23 +01:00 committed by Don Ho
parent 896d0ab695
commit 28eedd86dd
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}