Watch, Follow, &
Connect with Us

Please visit our new home

Public Report
Report From: 3rdRail/Ruby and Rails Editors    [ Add a report in this area ]  
Report #:  59685   Status: Closed
syntax highlighting does not respond to source changes
Project:  3rdRail Build #:  20080311_0801
Version:    unspecifie Submitted By:   Martin Müller
Report Type:  Basic functionality failure Date Reported:  3/19/2008 3:29:08 AM
Severity:    Serious / Highly visible problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All platforms Internal Tracking #:   5673
Resolution: Fixed (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: 1
see steps

BTS 5673
Steps to Reproduce:
Steps used by CodeGear QA:

switch to ruby perspective.

file | new | ruby project

file | new | empty ruby script

window|preferences|ruby|editor|syntax coloring

note that DLTK does not offer specific coloring for regexps.
give a distinctive color to strings that is not used by any other token type

copy and paste the following line into the ruby file:

cw = @CurrentFont[ 'cw' ][ c ] * ( @FontSizePt / 1000 )  

//exp & act:  color highlighting is as expected,  

description mentions 2 slashes,  only one found in example.

Modified line to read:

cw = @CurrentFont[ 'cw' ][ c ] * ( @FontSizePt /1000/ )  

now the regexp /1000/ is colored as a string.  

when second / is removed,  first slash to end of line is colored as a string.
closing and reopening file, closing and reopening IDE does not change this.
add a comment with a second "/" sign at the end of the line

cw = @CurrentFont[ 'cw' ][ c ] * ( @FontSizePt / 1000 )   # /

But this can't be a solution becaus it affects the readability of the code!


Server Response from: ETNACODE01