[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-ebc06183d4e3remotes/trunk
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…
Reference in New Issue