muscles: fix handling of the "@'" escape
commit637636412037d1fc2079f81260b19de5d0dab199
authorAkim Demaille <akim.demaille@gmail.com>
Sun, 4 Sep 2022 06:34:11 +0000 (4 08:34 +0200)
committerAkim Demaille <akim.demaille@gmail.com>
Sun, 4 Sep 2022 06:51:53 +0000 (4 08:51 +0200)
tree97344cb699477f69bf9a6cee37ca0b0bbfc635b6
parenteb83487606276fdefd20415176aff9309a62a5ee
muscles: fix handling of the "@'" escape

When we use `b4_` or `m4_` somewhere in the input, it is escaped as
`b4@'_`/`m4@'_` so that the warning about unexpanded b4_foo/m4_foo
macros does not fire.

But in the case of muscles, the `@'` escape was not recognized, and an
assertion was triggered.

Reported by Han Zheng.
<https://github.com/akimd/bison/issues/91>

* src/muscle-tab.c (COMMON_DECODE): Handle `@'`.
* tests/skeletons.at (Suspicious sequences): Check that case.
src/muscle-tab.c
tests/skeletons.at