diff options
| author | Roberto Raggi <roberto.raggi@nokia.com> | 2009-02-23 17:54:08 +0100 |
|---|---|---|
| committer | Roberto Raggi <roberto.raggi@nokia.com> | 2009-02-23 17:54:08 +0100 |
| commit | e2079e32696be9e8acb230024304d4b0a3924572 (patch) | |
| tree | 636a8402e7ba7c03df3812fed659cfa5af769ac0 /src/plugins/cpptools/cppcodecompletion.cpp | |
| parent | 65ff19e7fa8a00c8f6bd9f9ee2bd21e5096f15ad (diff) | |
| download | qt-creator-e2079e32696be9e8acb230024304d4b0a3924572.tar.gz | |
Look at the char at the left of \ or @.
Diffstat (limited to 'src/plugins/cpptools/cppcodecompletion.cpp')
| -rw-r--r-- | src/plugins/cpptools/cppcodecompletion.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cpptools/cppcodecompletion.cpp b/src/plugins/cpptools/cppcodecompletion.cpp index 6f0dc63305..9ecb0dc163 100644 --- a/src/plugins/cpptools/cppcodecompletion.cpp +++ b/src/plugins/cpptools/cppcodecompletion.cpp @@ -391,7 +391,7 @@ static int startOfOperator(TextEditor::ITextEditable *editor, } else if (ch3 == QLatin1Char('-') && ch2 == QLatin1Char('>') && ch == QLatin1Char('*')) { k = T_ARROW_STAR; start -= 3; - } else if (ch == QLatin1Char('@') || ch == QLatin1Char('\\')) { + } else if ((ch2.isNull() || ch2.isSpace()) && (ch == QLatin1Char('@') || ch == QLatin1Char('\\'))) { k = T_DOXY_COMMENT; --start; } |
