From 46d35a2e30079cb7ce690cd60aece17cc00f1de1 Mon Sep 17 00:00:00 2001 From: Neil Hodgson Date: Mon, 17 Jul 2017 15:18:31 +1000 Subject: Backport: Update types for Unix LP64 after changes to Sci_Position/Sci_PositionU. Backport of changeset 6352:df1416e3ff3a. --- lexers/LexPython.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lexers/LexPython.cxx') diff --git a/lexers/LexPython.cxx b/lexers/LexPython.cxx index 567c44d05..a768b4086 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 > ftripleStateAtEol; + std::map > ftripleStateAtEol; public: explicit LexerPython() : DefaultLexer(lexicalClasses, ELEMENTS(lexicalClasses)), @@ -466,7 +466,7 @@ void LexerPython::ProcessLineEnd(StyleContext &sc, std::vector > val; + std::pair > 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 >::iterator it; + std::map >::iterator it; it = ftripleStateAtEol.find(lineCurrent - 1); if (it != ftripleStateAtEol.end() && !it->second.empty()) { fstringStateStack = it->second; -- cgit v1.2.3