emacs-devel
[Top][All Lists]
Advanced

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

Re: Unicode confusables and reordering characters considered harmful


From: Yuri Khan
Subject: Re: Unicode confusables and reordering characters considered harmful
Date: Thu, 4 Nov 2021 02:41:12 +0700

On Thu, 4 Nov 2021 at 02:33, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>
> > +   '(("\N{LEFT-TO-RIGHT EMBEDDING}\\|\N{RIGHT-TO-LEFT EMBEDDING}\\|\
> > +\N{LEFT-TO-RIGHT OVERRIDE}\\|\N{RIGHT-TO-LEFT OVERRIDE}\\|\
> > +\N{LEFT-TO-RIGHT ISOLATE}\\|\N{RIGHT-TO-LEFT ISOLATE}\\|\
> > +\N{FIRST STRONG ISOLATE}\\|\N{POP DIRECTIONAL FORMATTING}\\|\
> > +\N{POP DIRECTIONAL ISOLATE}" . (0 'font-lock-warning-face t)))))
>
> A [...] would be a lot more efficient than this "...\\|...\\|...\\|...".

An (rx (any ?… ?… ?… …)) would be more wrappable/indentable and almost
as performant as a […], though.



reply via email to

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