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 | 2f2dfccd799599295329f90c17998feabff132e9 (patch) | |
tree | 88a8dade901c0d4118c272ecb5aa971e46015f4c /lexers/LexVB.cxx | |
parent | a334de1ef14e92748fe3e07cb4b8bb0401e69d07 (diff) | |
download | scintilla-mirror-2f2dfccd799599295329f90c17998feabff132e9.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); } |