<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>327842</bug_id>
          
          <creation_ts>2013-11-19 23:45:24 +0000</creation_ts>
          <short_desc>cstyle.js indenter: End of C-style comment is misdetected</short_desc>
          <delta_ts>2015-10-07 10:15:02 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>kate</product>
          <component>indentation</component>
          <version>Git</version>
          <rep_platform>unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Rolf Eike Beer">kde</reporter>
          <assigned_to name="KWrite Developers">kwrite-bugs-null</assigned_to>
          <cc>i.zaufi</cc>
    
    <cc>kfunk</cc>
          
          <cf_commitlink>http://commits.kde.org/ktexteditor/e13b3c6dd09e082dc8331ca04b81f02bbd303db1</cf_commitlink>
          <cf_versionfixedin>KDE Frameworks 5.16</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1412830</commentid>
    <comment_count>0</comment_count>
    <who name="Rolf Eike Beer">kde</who>
    <bug_when>2013-11-19 23:45:24 +0000</bug_when>
    <thetext>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 &apos;*&apos; as if it still is in comment mode.

Now remove that * and type &quot;i = 0;&quot;. 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1412835</commentid>
    <comment_count>1</comment_count>
    <who name="Kevin Funk">kfunk</who>
    <bug_when>2013-11-20 00:02:45 +0000</bug_when>
    <thetext>Confirmed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1412836</commentid>
    <comment_count>2</comment_count>
    <who name="Kevin Funk">kfunk</who>
    <bug_when>2013-11-20 00:05:01 +0000</bug_when>
    <thetext>This is a Kate issue, however. Moving to Kate component.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1441969</commentid>
    <comment_count>3</comment_count>
    <who name="Alex Turbov">i.zaufi</who>
    <bug_when>2014-04-18 13:31:04 +0000</bug_when>
    <thetext>can&apos;t reproduce w/ both C (version 1.45) and C++ (version 2.1) highlighter...
feel free to reopen if the still here....</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1441971</commentid>
    <comment_count>4</comment_count>
    <who name="Rolf Eike Beer">kde</who>
    <bug_when>2014-04-18 13:35:04 +0000</bug_when>
    <thetext>At least in 4.12.4 it is still present in both Kate and KDevelop (4.6.0).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1441974</commentid>
    <comment_count>5</comment_count>
    <who name="Alex Turbov">i.zaufi</who>
    <bug_when>2014-04-18 13:39:39 +0000</bug_when>
    <thetext>try to update syntax XML files... it is not a problem of kate&apos;s binary code, but an individual highlighting definition file, which is separate XML and can be updated via Settings -&gt; Configure Kate... -&gt; Open/Save -&gt; Modes&amp;File types tab -&gt; Download Highlighting Styles...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1441978</commentid>
    <comment_count>6</comment_count>
    <who name="Rolf Eike Beer">kde</who>
    <bug_when>2014-04-18 13:44:56 +0000</bug_when>
    <thetext>&gt; try to update syntax XML files... it is not a problem of kate&apos;s binary code,
&gt; but an individual highlighting definition file, which is separate XML and
&gt; can be updated via Settings -&gt; Configure Kate... -&gt; Open/Save -&gt; Modes&amp;File
&gt; types tab -&gt; Download Highlighting Styles...

According to what is shown there I already had C 1.45 and C++ 1.50 installed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1441979</commentid>
    <comment_count>7</comment_count>
    <who name="Alex Turbov">i.zaufi</who>
    <bug_when>2014-04-18 13:51:02 +0000</bug_when>
    <thetext>oops, sorry I&apos;ve misunderstood the bug reason...
the problem is in C indenter actually.
and unfortunately it still here...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1548437</commentid>
    <comment_count>8</comment_count>
    <who name="Dominik Haumann">dhaumann</who>
    <bug_when>2015-10-07 10:08:24 +0000</bug_when>
    <thetext>Git commit e13b3c6dd09e082dc8331ca04b81f02bbd303db1 by Dominik Haumann.
Committed on 07/10/2015 at 10:08.
Pushed by dhaumann into branch &apos;master&apos;.

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</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>