code: be robust to reference with invalid tags

Because we want to support $<a->b>$, we must accept -> in type tags,
and reject $<->$, as it is unfinished.
Reported by Ahcheong Lee.

* src/scan-code.l (yylex): Make sure "tag" does not end with -, since
-> does not close the tag.
* tests/input.at (Stray $ or @): Check this.
This commit is contained in:
Akim Demaille
2020-03-06 09:05:52 +01:00
parent 192e9fdf77
commit 641e326303
3 changed files with 7 additions and 3 deletions

3
THANKS
View File

@@ -4,8 +4,9 @@ it is today without the invaluable help of these people:
Aaro Koskinen aaro.koskinen@iki.fi
Аскар Сафин safinaskar@mail.ru
Adam Sampson ats@offog.org
Ahcheong Lee dkcjd2000@gmail.com
Airy Andre Airy.Andre@edf.fr
Akim Demaille akim@lrde.epita.fr
Akim Demaille akim@gnu.org
Albert Chin-A-Young china@thewrittenword.com
Alexander Belopolsky alexb@rentec.com
Alexandre Duret-Lutz adl@lrde.epita.fr