Type this in a C or C++ source file: char *buf; int i; /* foo * bar */ *buf = 0; If you now press return after the last semicolon the next line will begin with '*' as if it still is in comment mode. Now remove that * and type "i = 0;". Now mark all 4 lines and paste them somewhere: the last line will be prepended with a * again, as the following line is. Reproducible: Always
Confirmed.
This is a Kate issue, however. Moving to Kate component.
can't reproduce w/ both C (version 1.45) and C++ (version 2.1) highlighter... feel free to reopen if the still here....
At least in 4.12.4 it is still present in both Kate and KDevelop (4.6.0).
try to update syntax XML files... it is not a problem of kate's binary code, but an individual highlighting definition file, which is separate XML and can be updated via Settings -> Configure Kate... -> Open/Save -> Modes&File types tab -> Download Highlighting Styles...
> try to update syntax XML files... it is not a problem of kate's binary code, > but an individual highlighting definition file, which is separate XML and > can be updated via Settings -> Configure Kate... -> Open/Save -> Modes&File > types tab -> Download Highlighting Styles... According to what is shown there I already had C 1.45 and C++ 1.50 installed.
oops, sorry I've misunderstood the bug reason... the problem is in C indenter actually. and unfortunately it still here...
Git commit e13b3c6dd09e082dc8331ca04b81f02bbd303db1 by Dominik Haumann. Committed on 07/10/2015 at 10:08. Pushed by dhaumann into branch 'master'. End of C-style comment is misdetected CHANGELOG: fixed bug #327842: End of C-style comment is misdetected A +4 -0 autotests/input/indent/cstyle/doxygen10/expected A +3 -0 autotests/input/indent/cstyle/doxygen10/input.js A +3 -0 autotests/input/indent/cstyle/doxygen10/origin M +4 -2 src/script/data/indentation/cstyle.js http://commits.kde.org/ktexteditor/e13b3c6dd09e082dc8331ca04b81f02bbd303db1