How can I detect when a key {
opens and when }
is closed?
What I want to achieve is to detect the opening and closing of the keys, but I would also like to be able to detect content within them.
Example:
{#f66} o {red}
Expected result:
{#f66}
and {red}
. #f66
and red
.