mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-30 01:04:57 +02:00
[NEW_FEATURE] (Author: PSI) Recognize wscript and Rakefile respectively as python and ruby file.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1033 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
f03cac6706
commit
84339dc3a4
@ -136,8 +136,10 @@ void Buffer::setFileName(const TCHAR *fn, LangType defaultLang)
|
||||
newLang = L_MAKEFILE;
|
||||
else if (!generic_stricmp(_fileName, TEXT("CmakeLists.txt")))
|
||||
newLang = L_CMAKE;
|
||||
else if ((!generic_stricmp(_fileName, TEXT("SConstruct"))) || (!generic_stricmp(_fileName, TEXT("SConscript"))))
|
||||
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")))
|
||||
newLang = L_RUBY;
|
||||
}
|
||||
|
||||
updateTimeStamp();
|
||||
|
Loading…
x
Reference in New Issue
Block a user