mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-20 20:34:41 +02:00
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…
x
Reference in New Issue
Block a user