Cmake: Fix MSVC warning

cmakeautocompleter.cpp:113: warning: C4129: '(' : unrecognized character escape sequence

Change-Id: I4dccf3a0690a9c755c1e4672bfa669deaf893be2
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
This commit is contained in:
Orgad Shaneh
2015-09-27 14:53:36 +03:00
committed by Orgad Shaneh
parent e054c7d7db
commit c3772f478c

View File

@@ -110,7 +110,7 @@ QString CMakeAutoCompleter::insertMatchingBrace(const QTextCursor &cursor, const
int CMakeAutoCompleter::paragraphSeparatorAboutToBeInserted(QTextCursor &cursor, const TextEditor::TabSettings &tabSettings) int CMakeAutoCompleter::paragraphSeparatorAboutToBeInserted(QTextCursor &cursor, const TextEditor::TabSettings &tabSettings)
{ {
const QString line = cursor.block().text().trimmed(); const QString line = cursor.block().text().trimmed();
if (line.contains(QRegExp(QStringLiteral("^(endfunction|endmacro|endif|endforeach|endwhile)\\w*\(")))) if (line.contains(QRegExp(QStringLiteral("^(endfunction|endmacro|endif|endforeach|endwhile)\\w*\\("))))
tabSettings.indentLine(cursor.block(), tabSettings.indentationColumn(cursor.block().text())); tabSettings.indentLine(cursor.block(), tabSettings.indentationColumn(cursor.block().text()));
return 0; return 0;
} }