From ddded7ba5c97586e1e9b3a343d7a83b02b185faf Mon Sep 17 00:00:00 2001 From: Megamouse Date: Tue, 12 Jun 2018 11:17:17 +0200 Subject: [PATCH] Qt: cleanup syntax_highlighter a bit --- rpcs3/rpcs3.vcxproj.filters | 6 ------ rpcs3/rpcs3qt/syntax_highlighter.cpp | 3 +-- rpcs3/rpcs3qt/syntax_highlighter.h | 2 +- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/rpcs3/rpcs3.vcxproj.filters b/rpcs3/rpcs3.vcxproj.filters index 449a4a11d4..797257d46b 100644 --- a/rpcs3/rpcs3.vcxproj.filters +++ b/rpcs3/rpcs3.vcxproj.filters @@ -557,9 +557,6 @@ Gui\message dialog - - Generated Files\Debug - Io\evdev @@ -831,9 +828,6 @@ Gui\message dialog - - Generated Files - Gui\save diff --git a/rpcs3/rpcs3qt/syntax_highlighter.cpp b/rpcs3/rpcs3qt/syntax_highlighter.cpp index d12bf99cfe..ac6d3b948e 100644 --- a/rpcs3/rpcs3qt/syntax_highlighter.cpp +++ b/rpcs3/rpcs3qt/syntax_highlighter.cpp @@ -45,8 +45,7 @@ void Highlighter::highlightBlock(const QString &text) } else { - commentLength = endIndex - startIndex - + match.capturedLength(); + commentLength = endIndex - startIndex + match.capturedLength(); } setFormat(startIndex, commentLength, multiLineCommentFormat); startIndex = text.indexOf(commentStartExpression, startIndex + commentLength); diff --git a/rpcs3/rpcs3qt/syntax_highlighter.h b/rpcs3/rpcs3qt/syntax_highlighter.h index 8dd221fd6d..4cd1d36c9b 100644 --- a/rpcs3/rpcs3qt/syntax_highlighter.h +++ b/rpcs3/rpcs3qt/syntax_highlighter.h @@ -43,4 +43,4 @@ class GlslHighlighter : public Highlighter public: GlslHighlighter(QTextDocument *parent = 0); -}; \ No newline at end of file +};