From 28eedd86dd19334b553b69d8b7b708fce3dee5fb Mon Sep 17 00:00:00 2001 From: Mark Raymond Date: Mon, 20 Jun 2016 11:42:23 +0100 Subject: [PATCH] Detect "Vagrantfile" as Ruby file. Closes #1981 --- PowerEditor/src/ScitillaComponent/Buffer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}