help-source-highlight
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-source-highlight] C-sharp; number of double type highlighting


From: Lorenzo Bettini
Subject: Re: [Help-source-highlight] C-sharp; number of double type highlighting
Date: Mon, 24 Apr 2006 19:41:57 +0200
User-agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)

Hello,

I encounterd a small problem for a C-sharp source,
---------------------------------------------------------------------------=
-
namespace Foo
{
using System;
public class Foo
{
  public double one=1.0d;
  public double fr4=0.25d;
}
class testing
{
  public static void Main()
  {
    Foo x =3D new Foo();
      Console.WriteLine("one,fr4=3D"+x.one+", "+x.fr4);
  }
}
}
---------------------------------------------------------------------------=
-
Hilighting 1.0d and 0.25d seems a bit wrong.


mhhh... yes that should be a problem in the regular expressions for numbers (I'll fix it); do you happen to know whether that's the same of C/C++ numbers (I mean are 1.0d and 0.25d valid C/C++ literals)?

thanks
        Lorenzo

--
+-----------------------------------------------------+
|  Lorenzo Bettini          ICQ# lbetto, 16080134     |
|  PhD in Computer Science                            |
|  Dip. Sistemi e Informatica, Univ. di Firenze       |
|  Florence - Italy        (GNU/Linux User # 158233)  |
|  Home Page        : http://www.lorenzobettini.it    |
|  http://music.dsi.unifi.it         XKlaim language  |
|  http://www.purplesucker.com Deep Purple Cover Band |
|  http://www.gnu.org/software/src-highlite           |
|  http://www.gnu.org/software/gengetopt              |
|  http://www.lorenzobettini.it/software/gengen       |
|  http://www.lorenzobettini.it/software/doublecpp    |
+-----------------------------------------------------+




reply via email to

[Prev in Thread] Current Thread [Next in Thread]