diff options
author | Neil <nyamatongwe@gmail.com> | 2015-07-25 11:25:56 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2015-07-25 11:25:56 +1000 |
commit | c30768f1167cfe590e0b6a12c4a986e82a210cc3 (patch) | |
tree | 6048b8f9718abaf80f81ccfde41057d40a9198d2 /lexers/LexVB.cxx | |
parent | 5f7e861ca9e4c776f40eb884a3d6e97362842904 (diff) | |
download | scintilla-mirror-c30768f1167cfe590e0b6a12c4a986e82a210cc3.tar.gz |
Use Sci_PositionU/Sci_Position for arguments to functional lexers, folders, and
comment recognizers to allow for future implementation of 64-bit positions.
Diffstat (limited to 'lexers/LexVB.cxx')
-rw-r--r-- | lexers/LexVB.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lexers/LexVB.cxx b/lexers/LexVB.cxx index 54050c7bc..a7543fc73 100644 --- a/lexers/LexVB.cxx +++ b/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,7 +254,7 @@ 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; @@ -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); } |