forked from qt-creator/qt-creator
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:
committed by
Orgad Shaneh
parent
e054c7d7db
commit
c3772f478c
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user