diff options
author | Neil Hodgson <nyamatongwe@gmail.com> | 2018-04-14 09:18:35 +1000 |
---|---|---|
committer | Neil Hodgson <nyamatongwe@gmail.com> | 2018-04-14 09:18:35 +1000 |
commit | cc0af579fe23e74cce1fdc41ab53895cb18e396a (patch) | |
tree | 14fa25832551eb73002b67475a8b2da7532fc2a9 /lexers/LexPython.cxx | |
parent | 0f6f1b05894d29f03bc2b57e75fe4c8a37f9ac21 (diff) | |
download | scintilla-mirror-cc0af579fe23e74cce1fdc41ab53895cb18e396a.tar.gz |
Make some changes recommended by clang-tidy.
Diffstat (limited to 'lexers/LexPython.cxx')
-rw-r--r-- | lexers/LexPython.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lexers/LexPython.cxx b/lexers/LexPython.cxx index 85e365351..96f80c24a 100644 --- a/lexers/LexPython.cxx +++ b/lexers/LexPython.cxx @@ -346,7 +346,7 @@ public: DefaultLexer(lexicalClasses, ELEMENTS(lexicalClasses)), subStyles(styleSubable, 0x80, 0x40, 0) { } - virtual ~LexerPython() { + ~LexerPython() override { } void SCI_METHOD Release() override { delete this; @@ -683,7 +683,7 @@ void SCI_METHOD LexerPython::Lex(Sci_PositionU startPos, Sci_Position length, in } else if ((sc.state == SCE_P_TRIPLE) || (sc.state == SCE_P_FTRIPLE)) { if (sc.ch == '\\') { sc.Forward(); - } else if (sc.Match("\'\'\'")) { + } else if (sc.Match(R"(''')")) { sc.Forward(); sc.Forward(); sc.ForwardSetState(SCE_P_DEFAULT); @@ -692,7 +692,7 @@ void SCI_METHOD LexerPython::Lex(Sci_PositionU startPos, Sci_Position length, in } else if ((sc.state == SCE_P_TRIPLEDOUBLE) || (sc.state == SCE_P_FTRIPLEDOUBLE)) { if (sc.ch == '\\') { sc.Forward(); - } else if (sc.Match("\"\"\"")) { + } else if (sc.Match(R"(""")")) { sc.Forward(); sc.Forward(); sc.ForwardSetState(SCE_P_DEFAULT); @@ -723,7 +723,7 @@ void SCI_METHOD LexerPython::Lex(Sci_PositionU startPos, Sci_Position length, in if (sc.ch == quote) { if (IsPySingleQuoteStringState(stack_state)) { matching_stack_i = stack_i; - } else if (quote == '"' ? sc.Match("\"\"\"") : sc.Match("'''")) { + } else if (quote == '"' ? sc.Match(R"(""")") : sc.Match("'''")) { matching_stack_i = stack_i; } } |