aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexPython.cxx
diff options
context:
space:
mode:
authorNeil Hodgson <nyamatongwe@gmail.com>2017-07-17 15:18:31 +1000
committerNeil Hodgson <nyamatongwe@gmail.com>2017-07-17 15:18:31 +1000
commit7f6f9643d38f799155a76c108c8273f5cb2136ca (patch)
tree61fbfbb41de93e469f907d75db612a93f07995f1 /lexers/LexPython.cxx
parent83f45b0a9b0ed59736e7de796ec6db14c90be5c8 (diff)
downloadscintilla-mirror-7f6f9643d38f799155a76c108c8273f5cb2136ca.tar.gz
Update types for Unix LP64 after changes to Sci_Position/Sci_PositionU.
Diffstat (limited to 'lexers/LexPython.cxx')
-rw-r--r--lexers/LexPython.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/lexers/LexPython.cxx b/lexers/LexPython.cxx
index 2bb890875..0985c6dd4 100644
--- a/lexers/LexPython.cxx
+++ b/lexers/LexPython.cxx
@@ -342,7 +342,7 @@ class LexerPython : public DefaultLexer {
OptionSetPython osPython;
enum { ssIdentifier };
SubStyles subStyles;
- std::map<int, std::vector<SingleFStringExpState> > ftripleStateAtEol;
+ std::map<Sci_Position, std::vector<SingleFStringExpState> > ftripleStateAtEol;
public:
explicit LexerPython() :
DefaultLexer(lexicalClasses, ELEMENTS(lexicalClasses)),
@@ -466,7 +466,7 @@ void LexerPython::ProcessLineEnd(StyleContext &sc, std::vector<SingleFStringExpS
}
}
if (!fstringStateStack.empty()) {
- std::pair<int, std::vector<SingleFStringExpState> > val;
+ std::pair<Sci_Position, std::vector<SingleFStringExpState> > val;
val.first = sc.currentLine;
val.second = fstringStateStack;
@@ -529,7 +529,7 @@ void SCI_METHOD LexerPython::Lex(Sci_PositionU startPos, Sci_Position length, in
}
// Set up fstate stack from last line and remove any subsequent ftriple at eol states
- std::map<int, std::vector<SingleFStringExpState> >::iterator it;
+ std::map<Sci_Position, std::vector<SingleFStringExpState> >::iterator it;
it = ftripleStateAtEol.find(lineCurrent - 1);
if (it != ftripleStateAtEol.end() && !it->second.empty()) {
fstringStateStack = it->second;