@@ -193,7 +193,7 @@ void AsmHighlighter::highlightBlock(const QString &text) {
193193
194194 const QString fullMnemonic = match.captured (6 );
195195 const QString primary = fullMnemonic.section (' .' , 0 , 0 ).toUpper ();
196- const bool isControlFlow = std::find (controlFlowMnemonics.begin (), controlFlowMnemonics.end (), primary) != controlFlowMnemonics.end ();
196+ const bool isControlFlow = std::find (controlFlowMnemonics.begin (), controlFlowMnemonics.end (), primary. toStdString () ) != controlFlowMnemonics.end ();
197197 if (isControlFlow) {
198198 setFormat (match.capturedStart (6 ), match.capturedLength (6 ), controlFlowFormat);
199199 }
@@ -212,7 +212,7 @@ void AsmHighlighter::highlightBlock(const QString &text) {
212212 return ;
213213 }
214214
215- if (std::find (noTargetMnemonics.begin (), noTargetMnemonics.end (), primary) != noTargetMnemonics.end ()) {
215+ if (std::find (noTargetMnemonics.begin (), noTargetMnemonics.end (), primary. toStdString () ) != noTargetMnemonics.end ()) {
216216 return ;
217217 }
218218
@@ -239,7 +239,7 @@ void AsmHighlighter::highlightBlock(const QString &text) {
239239 const auto m3 = lIt.next ();
240240 if (m3.hasMatch ()) {
241241 const QString tok = m3.captured ().toUpper ();
242- if (std::find (reservedTokens.begin (), reservedTokens.end (), tok) != reservedTokens.end ()) {
242+ if (std::find (reservedTokens.begin (), reservedTokens.end (), tok. toStdString () ) != reservedTokens.end ()) {
243243 continue ;
244244 }
245245 const int start = operandStart + m3.capturedStart ();
@@ -248,4 +248,4 @@ void AsmHighlighter::highlightBlock(const QString &text) {
248248 }
249249 }
250250 }
251- }
251+ }
0 commit comments