[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
remotes/trunk
Don Ho 2013-04-02 21:07:05 +00:00
parent f03cac6706
commit 84339dc3a4
1 changed files with 3 additions and 1 deletions

View File

@ -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();