On Mon, 14 May 2007, Reynir Stefansson wrote:

> Enclosed is a user's diff to html.syntax that lets the editor colour
> fully-alphanumeric entities instead of just the alphabetic ones. After
> all, ½ is a legal entity (the fraction 1/2).
>
> -+- 8< -+-
> --- html.syntax.old    2007-05-14 14:30:40.000000000 +0000
> +++ html.syntax    2007-05-14 14:30:32.000000000 +0000
> @@ -1,7 +1,7 @@
> # Syntax rules for the HyperText Markup Language
>
> context default
> -    keyword &\[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\];
> brightgreen
> +    keyword
> &\[0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\];

That appears to allow "&123frac" to be colored as a "fully-alphanumeric"
as well.  Perhaps not what you intended.

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
_______________________________________________
Mc mailing list
http://mail.gnome.org/mailman/listinfo/mc

Reply via email to