diff options
author | XhmikosR <xhmikosr@gmail.com> | 2015-08-04 00:52:40 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2015-08-04 09:29:48 +0300 |
commit | af3a1a1dbfbf017e6a192a89c55f92238010336c (patch) | |
tree | 71083fac10b3561a2877f98e6c4587dc62087cda /scintilla/lexers/LexVB.cxx | |
parent | 26e3e3c2440c5fa2cbbe080bfc228687bec8574a (diff) | |
download | notepad2-mod-af3a1a1dbfbf017e6a192a89c55f92238010336c.zip notepad2-mod-af3a1a1dbfbf017e6a192a89c55f92238010336c.tar.gz notepad2-mod-af3a1a1dbfbf017e6a192a89c55f92238010336c.tar.bz2 |
Update Scintilla to 3.6.0.
Diffstat (limited to 'scintilla/lexers/LexVB.cxx')
-rw-r--r-- | scintilla/lexers/LexVB.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/scintilla/lexers/LexVB.cxx b/scintilla/lexers/LexVB.cxx index 60153cf..21aee77 100644 --- a/scintilla/lexers/LexVB.cxx +++ b/scintilla/lexers/LexVB.cxx @@ -31,7 +31,7 @@ using namespace Scintilla; #define SCE_B_FILENUMBER SCE_B_DEFAULT+100
-static bool IsVBComment(Accessor &styler, int pos, int len) {
+static bool IsVBComment(Accessor &styler, Sci_Position pos, Sci_Position len) {
return len > 0 && styler[pos] == '\'';
}
@@ -58,7 +58,7 @@ static inline bool IsANumberChar(int ch) { ch == '.' || ch == '-' || ch == '+');
}
-static void ColouriseVBDoc(unsigned int startPos, int length, int initStyle,
+static void ColouriseVBDoc(Sci_PositionU startPos, Sci_Position length, int initStyle,
WordList *keywordlists[], Accessor &styler, bool vbScriptSyntax) {
WordList &keywords = *keywordlists[0];
@@ -254,12 +254,12 @@ static void ColouriseVBDoc(unsigned int startPos, int length, int initStyle, sc.Complete();
}
-static void FoldVBDoc(unsigned int startPos, int length, int,
+static void FoldVBDoc(Sci_PositionU startPos, Sci_Position length, int,
WordList *[], Accessor &styler) {
- int endPos = startPos + length;
+ Sci_Position endPos = startPos + length;
// Backtrack to previous line in case need to fix its fold status
- int lineCurrent = styler.GetLine(startPos);
+ Sci_Position lineCurrent = styler.GetLine(startPos);
if (startPos > 0) {
if (lineCurrent > 0) {
lineCurrent--;
@@ -269,7 +269,7 @@ static void FoldVBDoc(unsigned int startPos, int length, int, int spaceFlags = 0;
int indentCurrent = styler.IndentAmount(lineCurrent, &spaceFlags, IsVBComment);
char chNext = styler[startPos];
- for (int i = startPos; i < endPos; i++) {
+ for (Sci_Position i = startPos; i < endPos; i++) {
char ch = chNext;
chNext = styler.SafeGetCharAt(i + 1);
@@ -296,12 +296,12 @@ static void FoldVBDoc(unsigned int startPos, int length, int, }
}
-static void ColouriseVBNetDoc(unsigned int startPos, int length, int initStyle,
+static void ColouriseVBNetDoc(Sci_PositionU startPos, Sci_Position length, int initStyle,
WordList *keywordlists[], Accessor &styler) {
ColouriseVBDoc(startPos, length, initStyle, keywordlists, styler, false);
}
-static void ColouriseVBScriptDoc(unsigned int startPos, int length, int initStyle,
+static void ColouriseVBScriptDoc(Sci_PositionU startPos, Sci_Position length, int initStyle,
WordList *keywordlists[], Accessor &styler) {
ColouriseVBDoc(startPos, length, initStyle, keywordlists, styler, true);
}
|