Edgewall Software
Modify

Opened 15 years ago

Closed 15 years ago

#8205 closed defect (invalid)

Empty comments are not handled properly

Reported by: mar Owned by:
Priority: normal Milestone:
Component: version control/browser Version: 0.11
Severity: normal Keywords: comment empty color
Cc: trac@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Empty comments in my PHP code, in .php files are not handled properly I mean if I add // to source, everything after */ and until another */ are collored as comment.

I think this issue might also be valid with C/C++ code and etc.

I have checked it only with 0.11, so it needs confirmation on newer versions.

Attachments (0)

Change History (1)

comment:1 by Remy Blank, 15 years ago

Resolution: invalid
Status: newclosed

Let's see:

<?php
function test($param) {
    $a = 1; /**/
    $b = 2; /* Non-empty comment */
    $c = 3;
}
?>

Indeed, this seems to be the case. Trac is using Pygments for syntax highlighting, so this is an issue with Pygments.

I haven't found a ticket about this in the Pygments tracker, so you may want to report the issue there:

http://dev.pocoo.org/projects/pygments

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.