bugGNU nano - Bugs: bug #41908, C syntax highlighting is broken on...

 
 

bug #41908: C syntax highlighting is broken on comment block start

Submitted by:  None
Submitted on:  Wed 19 Mar 2014 04:32:39 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: Benno Schulenberg <bens>
Open/Closed: OpenRelease: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 08 Jul 2014 06:30:15 PM UTC, comment #3:

we can confirm this bug without recompile.
Add to /usr/share/nano/c.nanoarc one line:
color brightblue "/\*"

Maxim Baginskiy <kachan>
Sun 23 Mar 2014 08:01:43 PM UTC, comment #2:

Can you confirm that you compiled with -O0?

Benno Schulenberg <bens>
Project MemberIn charge of this item.
Wed 19 Mar 2014 04:49:55 PM UTC, comment #1:

This is probably related to bug 41683 (I just noticed it)
https://savannah.gnu.org/bugs/index.php?41683

Anonymous
Wed 19 Mar 2014 04:32:39 PM UTC, original submission:

I can reproduce this bug on Arch linux; nano version: 2.2.6-2.

Steps:

1) enable syntax highlighting for C/C++ files in /etc/nanorc
2) save a file named "foo.c" containing:

/*
asd
*/

3) close and reopen the file
4) you should notice how the first line "/*" is not highlighted
5) press ARROW_DOWN and then ARROW_UP: the line becomes highlighted (so the bug vanishes)

This happens in both TTY and gnome-terminal

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by kachan (Posted a comment)
  • -unavailable- added by bens (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 23 Mar 2014 08:01:43 PM UTCbensAssigned toNone=>bens

    Back to the top


    Powered by Savane 3.1-cleanup