[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\
|
cd ..\bin\
|
||||||
|
|
||||||
del /F /S /Q .\zipped.package.release\unicode\*.*
|
del /F /S /Q .\zipped.package.release\unicode\*.*
|
||||||
|
|
|
@ -2057,7 +2057,7 @@ BOOL Notepad_plus::notify(SCNotification *notification)
|
||||||
prevWasEdit = false;
|
prevWasEdit = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!_isFileOpening && (isFromPrimary || isFromSecondary))
|
if (!_isFileOpening && (isFromPrimary || isFromSecondary) && _pEditView->hasMarginShowed(ScintillaEditView::_SC_MARGE_MODIFMARKER))
|
||||||
{
|
{
|
||||||
bool isProcessed = false;
|
bool isProcessed = false;
|
||||||
|
|
||||||
|
@ -2905,7 +2905,9 @@ void Notepad_plus::specialCmd(int id, int param)
|
||||||
else if (id == IDM_VIEW_SYMBOLMARGIN)
|
else if (id == IDM_VIEW_SYMBOLMARGIN)
|
||||||
margin = ScintillaEditView::_SC_MARGE_SYBOLE;
|
margin = ScintillaEditView::_SC_MARGE_SYBOLE;
|
||||||
else if (id == IDM_VIEW_DOCCHANGEMARGIN)
|
else if (id == IDM_VIEW_DOCCHANGEMARGIN)
|
||||||
|
{
|
||||||
margin = ScintillaEditView::_SC_MARGE_MODIFMARKER;
|
margin = ScintillaEditView::_SC_MARGE_MODIFMARKER;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
margin = ScintillaEditView::_SC_MARGE_FOLDER;
|
margin = ScintillaEditView::_SC_MARGE_FOLDER;
|
||||||
|
|
||||||
|
|
|
@ -130,6 +130,9 @@ void Buffer::setFileName(const TCHAR *fn, LangType defaultLang)
|
||||||
newLang = L_MAKEFILE;
|
newLang = L_MAKEFILE;
|
||||||
else if (!generic_stricmp(_fileName, TEXT("CmakeLists.txt")))
|
else if (!generic_stricmp(_fileName, TEXT("CmakeLists.txt")))
|
||||||
newLang = L_CMAKE;
|
newLang = L_CMAKE;
|
||||||
|
else if ((!generic_stricmp(_fileName, TEXT("SConstruct"))) || (!generic_stricmp(_fileName, TEXT("SConscript"))))
|
||||||
|
newLang = L_PYTHON;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
updateTimeStamp();
|
updateTimeStamp();
|
||||||
|
|
Loading…
Reference in New Issue