[NEW] SConstruct and SConscript are recognized as python file.
[BUG_FIXED] stop the indicator highlighting while the line change marker margin is hidden. git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@440 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
b987cd7055
commit
2eda8ec256
|
@ -1,4 +1,4 @@
|
|||
copy /Y ".\localization\*.*" ..\bin\localization
|
||||
copy /Y ".\nativeLang\*.*" ..\bin\localization
|
||||
cd ..\bin\
|
||||
|
||||
del /F /S /Q .\zipped.package.release\unicode\*.*
|
||||
|
|
|
@ -2057,7 +2057,7 @@ BOOL Notepad_plus::notify(SCNotification *notification)
|
|||
prevWasEdit = false;
|
||||
}
|
||||
|
||||
if (!_isFileOpening && (isFromPrimary || isFromSecondary))
|
||||
if (!_isFileOpening && (isFromPrimary || isFromSecondary) && _pEditView->hasMarginShowed(ScintillaEditView::_SC_MARGE_MODIFMARKER))
|
||||
{
|
||||
bool isProcessed = false;
|
||||
|
||||
|
@ -2905,7 +2905,9 @@ void Notepad_plus::specialCmd(int id, int param)
|
|||
else if (id == IDM_VIEW_SYMBOLMARGIN)
|
||||
margin = ScintillaEditView::_SC_MARGE_SYBOLE;
|
||||
else if (id == IDM_VIEW_DOCCHANGEMARGIN)
|
||||
{
|
||||
margin = ScintillaEditView::_SC_MARGE_MODIFMARKER;
|
||||
}
|
||||
else
|
||||
margin = ScintillaEditView::_SC_MARGE_FOLDER;
|
||||
|
||||
|
|
|
@ -130,6 +130,9 @@ 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"))))
|
||||
newLang = L_PYTHON;
|
||||
|
||||
}
|
||||
|
||||
updateTimeStamp();
|
||||
|
|
Loading…
Reference in New Issue