[BUG_FIXED] (Author: Ivan Radić, aka Loreia) Fix a minor issue of UDL2.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@967 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
4f8122d2ef
commit
cc1c928b8c
@ -2067,6 +2067,7 @@ void Notepad_plus::addHotSpot(bool docIsModifing)
|
|||||||
_pEditView->execute(SCI_SETTARGETEND, endPos);
|
_pEditView->execute(SCI_SETTARGETEND, endPos);
|
||||||
|
|
||||||
vector<pair<int, int> > hotspotStylers;
|
vector<pair<int, int> > hotspotStylers;
|
||||||
|
|
||||||
int style_hotspot = 30;
|
int style_hotspot = 30;
|
||||||
int posFound = _pEditView->execute(SCI_SEARCHINTARGET, strlen(URL_REG_EXPR), (LPARAM)URL_REG_EXPR);
|
int posFound = _pEditView->execute(SCI_SEARCHINTARGET, strlen(URL_REG_EXPR), (LPARAM)URL_REG_EXPR);
|
||||||
|
|
||||||
@ -2079,7 +2080,7 @@ void Notepad_plus::addHotSpot(bool docIsModifing)
|
|||||||
|
|
||||||
if (end < posBegin2style - 1)
|
if (end < posBegin2style - 1)
|
||||||
{
|
{
|
||||||
if (style_hotspot > 1)
|
if (style_hotspot > 24)
|
||||||
style_hotspot--;
|
style_hotspot--;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -2141,7 +2142,7 @@ void Notepad_plus::addHotSpot(bool docIsModifing)
|
|||||||
_pEditView->execute(SCI_SETHOTSPOTSINGLELINE, style_hotspot, 0);
|
_pEditView->execute(SCI_SETHOTSPOTSINGLELINE, style_hotspot, 0);
|
||||||
_pEditView->execute(SCI_STARTSTYLING, start, 0x1F);
|
_pEditView->execute(SCI_STARTSTYLING, start, 0x1F);
|
||||||
_pEditView->execute(SCI_SETSTYLING, foundTextLen, style_hotspot);
|
_pEditView->execute(SCI_SETSTYLING, foundTextLen, style_hotspot);
|
||||||
if (style_hotspot > 1)
|
if (style_hotspot > 24)
|
||||||
style_hotspot--;
|
style_hotspot--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -405,7 +405,7 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
Style _styleArray[SCE_USER_STYLE_TOTAL_STYLES];
|
Style _styleArray[SCE_STYLE_ARRAY_SIZE];
|
||||||
int _nbStyler;
|
int _nbStyler;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -259,6 +259,7 @@
|
|||||||
#define SCE_USER_STYLE_IDENTIFIER 24
|
#define SCE_USER_STYLE_IDENTIFIER 24
|
||||||
#define SCE_USER_STYLE_TOTAL_STYLES SCE_USER_STYLE_IDENTIFIER
|
#define SCE_USER_STYLE_TOTAL_STYLES SCE_USER_STYLE_IDENTIFIER
|
||||||
#define SCE_USER_STYLE_MAPPER_TOTAL 17
|
#define SCE_USER_STYLE_MAPPER_TOTAL 17
|
||||||
|
#define SCE_STYLE_ARRAY_SIZE 30 // must cover sizes of NppParameters::_lexerStyler and NppParameters::_widgetStyle
|
||||||
|
|
||||||
#define SCE_USER_MASK_NESTING_NONE 0
|
#define SCE_USER_MASK_NESTING_NONE 0
|
||||||
#define SCE_USER_MASK_NESTING_DELIMITER1 0x1
|
#define SCE_USER_MASK_NESTING_DELIMITER1 0x1
|
||||||
|
@ -809,8 +809,8 @@ static bool isInListBackward(WordList & list, StyleContext & sc, bool specialMod
|
|||||||
// multi-part keyword is found,
|
// multi-part keyword is found,
|
||||||
// but it must be followed by whitespace (or 'forward' keyword)
|
// but it must be followed by whitespace (or 'forward' keyword)
|
||||||
// otherwise "else if" might wrongly match "else iff"
|
// otherwise "else if" might wrongly match "else iff"
|
||||||
bNext = sc.GetRelative(indexb + offset + 1);
|
bNext = sc.GetRelative(indexb + offset);
|
||||||
if (isWhiteSpace2(b, nlCountTemp, wsChar, bNext))
|
if (isWhiteSpace(bNext))
|
||||||
fwDelimiterFound = FORWARD_WHITESPACE_FOUND;
|
fwDelimiterFound = FORWARD_WHITESPACE_FOUND;
|
||||||
|
|
||||||
if (fwDelimiterFound == NO_DELIMITER)
|
if (fwDelimiterFound == NO_DELIMITER)
|
||||||
|
Loading…
Reference in New Issue
Block a user