https://bugs.kde.org/show_bug.cgi?id=364370
Igor Kushnir <igor...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |igor...@gmail.com Component|Language Support: CPP (old) |general Status|RESOLVED |REOPENED Ever confirmed|0 |1 Resolution|WORKSFORME |--- Assignee|kdevelop-bugs-n...@kde.org |kwrite-bugs-n...@kde.org Version|unspecified |5.99.0 Product|kdevelop |frameworks-ktexteditor --- Comment #4 from Igor Kushnir <igor...@gmail.com> --- > When I write a C++-style comment in KDevelop and the sentence includes > "don't", it adds two single quotes. This use case can be fixed e.g. by > disabled autoquotes when there is a letter to the left of the cursor location. A letter to the left of a single quote does not guarantee that it is not a character literal. See https://en.cppreference.com/w/cpp/language/character_literal and https://en.cppreference.com/w/c/language/character_constant. Might be fixed in this simple way for letters other than [uUL] and digits other than 8 (assuming thousand separators). Or inside comments. > I can't reproduce this with KDevelop 5.9.220803 (22.08.3). Closing as WFM. If > you can still repro, change the status back. I can reproduce this with current KDevelop master and KTextEditor 5.99.0. Reopening. As far as I know, the adding of the matching quote is KTextEditor's doing. Works the same way in Kate and KWrite (versions 22.08.2) in C++ mode. -- You are receiving this mail because: You are watching all bug changes.