aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexPython.cxx
diff options
context:
space:
mode:
authormitchell <unknown>2018-05-05 21:09:21 -0400
committermitchell <unknown>2018-05-05 21:09:21 -0400
commitc60d0059738eb49622dfe94e69d371856748ec18 (patch)
tree05661173868a8404e68720bdacec575292a7a896 /lexers/LexPython.cxx
parent50e62c7c057261b8d1bd10c05216486549a9b604 (diff)
downloadscintilla-mirror-c60d0059738eb49622dfe94e69d371856748ec18.tar.gz
Backport: Make some changes recommended by clang-tidy.
Backport of changeset 6687:4cbf987c7590.
Diffstat (limited to 'lexers/LexPython.cxx')
-rw-r--r--lexers/LexPython.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/lexers/LexPython.cxx b/lexers/LexPython.cxx
index abe1c4be2..df80e499b 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;
}
}