fix: parsing when closing parentheses is has a space before it.

This commit is contained in:
redxef 2024-12-18 00:55:36 +01:00
parent 87dd4358d8
commit d5e8b69b70
Signed by: redxef
GPG key ID: 7DAC3AA211CBD921

View file

@ -77,6 +77,13 @@ namespace Jellyfin.Plugin.SmartPlaylist.Lisp.Compiler {
_sts.Commit();
break;
}
if (t is SpaceToken) {
// need this here because those tokens can never
// return an expression and trying to parse the last
// expression will not work if its only spaces and a
// closing parentheses.
continue;
}
_sts.Rewind(1);
expressions.Add(parse());
}