- Subject: Re: Jed problem(s) fixed... issues resolved...
- From: "John E. Davis" <davis@xxxxxxxxxxxxx>
- Date: Mon, 16 Jan 2006 19:07:39 -0500
Paul Boekholt <p.boekholt@xxxxxxxxx> wrote:
>() = define_keywords_n ("C", "asmförintnewtry", 3, 0);
>
>I get the error
>
>Keyword list is improperly formed.
This will not be fixed in the upcoming 0.99-18 release. I am afraid
that fixing it will require too many changes. It will have to wait
until the 0.99-19 development versions.
>strbytelen("ö") gives me 2, so I try
>
>() = define_keywords_n ("C", "asmföintnewtry", 3, 0);
>
>which doesn't give an error, but it doesn't highlight "fö" either.
The problem is that 'ö' is not a word character as far as the C mode
syntax table goes. If you add it to the approriate `define_syntax`
statement, then it will be highlighted, i.e.,
define_syntax ("0-9a-zA-Z_ö", 'w', "C");
However, it is probably better to use
define_syntax ("0-9a-zA-Z_" + char(0xF6), 'w', "C");
since what the `char` intrinsic produces depends upon the UTF-8 mode.
Ultimately, `define_syntax` should support slang-2 character classes,
e.g., "\\w" instead of "0-9a-zA-Z".
--John
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.
[2006 date index]
[2006 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]