mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-07 12:40:01 +00:00
Qt: cleanup syntax_highlighter a bit
This commit is contained in:
parent
79dd62cda2
commit
ddded7ba5c
@ -557,9 +557,6 @@
|
||||
<ClCompile Include="rpcs3qt\msg_dialog_frame.cpp">
|
||||
<Filter>Gui\message dialog</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="rpcs3qt\syntax_highlighter.cpp">
|
||||
<Filter>Generated Files\Debug</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="evdev_joystick_handler.cpp">
|
||||
<Filter>Io\evdev</Filter>
|
||||
</ClCompile>
|
||||
@ -831,9 +828,6 @@
|
||||
<CustomBuild Include="rpcs3qt\msg_dialog_frame.h">
|
||||
<Filter>Gui\message dialog</Filter>
|
||||
</CustomBuild>
|
||||
<CustomBuild Include="rpcs3qt\syntax_highlighter.h">
|
||||
<Filter>Generated Files</Filter>
|
||||
</CustomBuild>
|
||||
<CustomBuild Include="rpcs3qt\save_manager_dialog.h">
|
||||
<Filter>Gui\save</Filter>
|
||||
</CustomBuild>
|
||||
|
@ -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);
|
||||
|
@ -43,4 +43,4 @@ class GlslHighlighter : public Highlighter
|
||||
|
||||
public:
|
||||
GlslHighlighter(QTextDocument *parent = 0);
|
||||
};
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user