Re: [Fwd: gtksourceview csharp.lang]
- From: John Luke <jluke cfl rr com>
- To: Paolo Maggi <paolo maggi polito it>
- Cc: gnome-devtools gnome org
- Subject: Re: [Fwd: gtksourceview csharp.lang]
- Date: 12 Jun 2003 15:22:38 -0400
Hello,
On Thu, 2003-06-12 at 14:56, Paolo Maggi wrote:
>
> > I am stuck figuring out how to highlight attributes (regex?), which look
> > like:
> > [SomeAttribute]
>
> I don't know C# so it is not clear to me what you mean with
> [SomeAttribute]
>
An attribute is kind of like a property for a part of code.
It looks like this:
[Glade.Widget]
Window win;
I just tried:
<pattern-item _name = "Attribute" style = "Keyword">
<regex>\[[a-zA-Z0-9-_]+\]</regex>
</pattern-item>
but it didn't seem to work.
> You cannot specify the colors directly.
> You should be able to find a list of styles in gtksourcestylescheme.h
> (and gtksourcestylescheme.c)
>
Ok thanks.
> Giving a quick look at you .lang file it seems ok to me.
>
> Why have you chosen to not highlight the numbers?
>
I took out the part from the java file (is that what you mean), because
it was complaining that the regex was bad.
(gedit:6685): GtkSourceView-WARNING **: Regex failed to compile: Invalid
preceding regular expression
(gedit:6685): GtkSourceView-WARNING **: Regex pattern failed
[<(?i0[X][\\dA-F]+|\\d+(\\.\\d*)?(?:E[+-]?[\\d]+)?F?|\\.\\d+(?:E[+-]?[\\d]+)?F?|[\\d]+[LF]?))]
> Please, add your .lang file to a bug report in bugzilla.gnome.org.
It's #115040.
>
> Regards,
> Paolo
>
John Luke
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]