POV-Ray : Newsgroups : povray.beta-test : Editor highlighting bug Server Time
1 Nov 2024 11:13:51 EDT (-0400)
  Editor highlighting bug (Message 1 to 2 of 2)  
From: Kynar - CChat
Subject: Editor highlighting bug
Date: 16 May 2002 19:31:48
Message: <3ce44164@news.povray.org>
Try this. The editor doesn't like the last "*/".  It is not properly
highlighting  the source.  The render will execute without a problem.

If you remove the last "*/", then the editor highlighting is happy and
renderer throws an error about having unmatched comment blocks.

// Persistence of Vision Ray Tracer Scene Description File
// File: ?.pov
// Vers: 3.5
// Desc: Basic Scene Example
// Date: mm/dd/yy
// Auth: ?
//

#version 3.5;

#include "colors.inc"

global_settings {
  assumed_gamma 1.0
}

// ----------------------------------------

camera {
  location  <0.0, 0.5, -4.0>
  direction 1.5*z
  right     x*image_width/image_height
  look_at   <0.0, 0.0,  0.0>
}

sky_sphere {
  pigment {
    gradient y
    color_map {
      [0.0 rgb <0.6,0.7,1.0>]
      [0.7 rgb <0.0,0.1,0.8>]
    }
  }
}

light_source {
  <0, 0, 0>            // light's position (translated below)
  color rgb <1, 1, 1>  // light's color
  translate <-30, 30, -30>
}

// ----------------------------------------

plane {
  y, -1
  pigment { color rgb <0.7,0.5,0.3> }
}

sphere {
  0.0, 1
  texture {
    pigment {
      /*
      /*
      radial
      */
      /*
      frequency 8
      */
      */
      color_map {
        [0.00 color rgb <1.0,0.4,0.2> ]
        [0.33 color rgb <0.2,0.4,1.0> ]
        [0.66 color rgb <0.4,1.0,0.2> ]
        [1.00 color rgb <1.0,0.4,0.2> ]
      }
    }
    finish{
      specular 0.6
    }
  }
}
a a .way


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Editor highlighting bug
Date: 17 May 2002 04:01:40
Message: <3ce4b8e4$1@news.povray.org>
"Kynar - CChat" <kyn### [at] cchatcom> schrieb im Newsbeitrag
news:3ce44164@news.povray.org...
> Try this. The editor doesn't like the last "*/".  It is not properly
> highlighting  the source.  The render will execute without a problem.
>
> If you remove the last "*/", then the editor highlighting is happy and
> renderer throws an error about having unmatched comment blocks.

Yes, the editor(s) do not support nested comment coloring.  POV-Ray knows
nothing about how the editor highlights the comments.

    Thorsten


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.