Detect "Vagrantfile" as Ruby file.

Closes #1981
pull/2862/merge
Mark Raymond 9 years ago committed by Don Ho
parent 896d0ab695
commit 28eedd86dd

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

Loading…
Cancel
Save