diff options
author | Neil <nyamatongwe@gmail.com> | 2015-07-20 10:04:16 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2015-07-20 10:04:16 +1000 |
commit | 2d3f2f707a4c4faf5255f3ae13634a82cef8c581 (patch) | |
tree | 7b38a49cba346268eae7dda732f63e53c386a2b7 /lexers/LexPerl.cxx | |
parent | 352a0a6f24892a06755c132c22d16bfb9361f047 (diff) | |
download | scintilla-mirror-2d3f2f707a4c4faf5255f3ae13634a82cef8c581.tar.gz |
Use Sci_Position when required to implement interfaces.
Diffstat (limited to 'lexers/LexPerl.cxx')
-rw-r--r-- | lexers/LexPerl.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lexers/LexPerl.cxx b/lexers/LexPerl.cxx index b4a2dd12e..c81dc2663 100644 --- a/lexers/LexPerl.cxx +++ b/lexers/LexPerl.cxx @@ -367,13 +367,13 @@ public: const char *SCI_METHOD DescribeProperty(const char *name) { return osPerl.DescribeProperty(name); } - int SCI_METHOD PropertySet(const char *key, const char *val); + Sci_Position SCI_METHOD PropertySet(const char *key, const char *val); const char *SCI_METHOD DescribeWordListSets() { return osPerl.DescribeWordListSets(); } - int SCI_METHOD WordListSet(int n, const char *wl); - void SCI_METHOD Lex(unsigned int startPos, int length, int initStyle, IDocument *pAccess); - void SCI_METHOD Fold(unsigned int startPos, int length, int initStyle, IDocument *pAccess); + Sci_Position SCI_METHOD WordListSet(int n, const char *wl); + void SCI_METHOD Lex(Sci_PositionU startPos, Sci_Position length, int initStyle, IDocument *pAccess); + void SCI_METHOD Fold(Sci_PositionU startPos, Sci_Position length, int initStyle, IDocument *pAccess); void *SCI_METHOD PrivateCall(int, void *) { return 0; @@ -386,14 +386,14 @@ public: void InterpolateSegment(StyleContext &sc, int maxSeg, bool isPattern=false); }; -int SCI_METHOD LexerPerl::PropertySet(const char *key, const char *val) { +Sci_Position SCI_METHOD LexerPerl::PropertySet(const char *key, const char *val) { if (osPerl.PropertySet(&options, key, val)) { return 0; } return -1; } -int SCI_METHOD LexerPerl::WordListSet(int n, const char *wl) { +Sci_Position SCI_METHOD LexerPerl::WordListSet(int n, const char *wl) { WordList *wordListN = 0; switch (n) { case 0: @@ -515,7 +515,7 @@ void LexerPerl::InterpolateSegment(StyleContext &sc, int maxSeg, bool isPattern) sc.SetState(sc.state - INTERPOLATE_SHIFT); } -void SCI_METHOD LexerPerl::Lex(unsigned int startPos, int length, int initStyle, IDocument *pAccess) { +void SCI_METHOD LexerPerl::Lex(Sci_PositionU startPos, Sci_Position length, int initStyle, IDocument *pAccess) { LexAccessor styler(pAccess); // keywords that forces /PATTERN/ at all times; should track vim's behaviour @@ -1557,7 +1557,7 @@ void SCI_METHOD LexerPerl::Lex(unsigned int startPos, int length, int initStyle, #define PERL_HEADFOLD_SHIFT 4 #define PERL_HEADFOLD_MASK 0xF0 -void SCI_METHOD LexerPerl::Fold(unsigned int startPos, int length, int /* initStyle */, IDocument *pAccess) { +void SCI_METHOD LexerPerl::Fold(Sci_PositionU startPos, Sci_Position length, int /* initStyle */, IDocument *pAccess) { if (!options.fold) return; |