From c3772f478cf9c24174b8453c518424425c07a38e Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Sun, 27 Sep 2015 14:53:36 +0300 Subject: [PATCH] Cmake: Fix MSVC warning cmakeautocompleter.cpp:113: warning: C4129: '(' : unrecognized character escape sequence Change-Id: I4dccf3a0690a9c755c1e4672bfa669deaf893be2 Reviewed-by: Daniel Teske --- src/plugins/cmakeprojectmanager/cmakeautocompleter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/cmakeprojectmanager/cmakeautocompleter.cpp b/src/plugins/cmakeprojectmanager/cmakeautocompleter.cpp index c74befd95b1..4cd5eb952c5 100644 --- a/src/plugins/cmakeprojectmanager/cmakeautocompleter.cpp +++ b/src/plugins/cmakeprojectmanager/cmakeautocompleter.cpp @@ -110,7 +110,7 @@ QString CMakeAutoCompleter::insertMatchingBrace(const QTextCursor &cursor, const int CMakeAutoCompleter::paragraphSeparatorAboutToBeInserted(QTextCursor &cursor, const TextEditor::TabSettings &tabSettings) { 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())); return 0; }