[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[prettify-symbols-mode] Two consecutive matches don't work?
From: |
Joost |
Subject: |
[prettify-symbols-mode] Two consecutive matches don't work? |
Date: |
Wed, 18 May 2022 11:32:07 +0200 |
User-agent: |
Cyrus-JMAP/3.7.0-alpha0-591-gfe6c3a2700-fm-20220427.001-gfe6c3a27 |
Hi,
I'm dealing with some `.xml` files that contain data which uses the sequence
`<<!` as some sort of operator. Because it's XML, the LESS-THAN sign needs to
be encoded as `<`, yielding `<<!`.
So I thought this would be the ideal use case for `prettify-symbols-mode`. I
added `("<" . ?<)` to `prettify-symbols-alist` and activated the mode.
Unfortunately, only the first `<` in each sequence is prettified. This seems
to be due to the fact that the second `<` is followed by the exclamation
mark: if I insert a space in between, prettification works.
Is there any way to remedy this?
TIA
--
Joost Kremers
Life has its moments