#382 Syntax "use constant" statements with division

v0.5.x
closed-fixed
nobody
Editor (234)
5
2007-03-27
2007-03-21
tmarthal
No

The following code produces an error in the syntax highlighting:

use constant PI => 3.14159265358979323846;
use constant RADTODEG => 180/PI;
use constant DEGTORAD => PI/180;

The problem lies in the fact that the character control sequence for the integer 180 in the DEGTORAD is not being parsed as a number and therefor not displayed right.

Discussion

  • Jan Ploski
    Jan Ploski
    2007-03-27

    • status: open --> closed-fixed
     
  • Jan Ploski
    Jan Ploski
    2007-03-27

    Logged In: YES
    user_id=86907
    Originator: NO

    Fixed in 0.4.28/0.5.32.