fix: parsing when closing parentheses is has a space before it.
This commit is contained in:
parent
87dd4358d8
commit
d5e8b69b70
1 changed files with 7 additions and 0 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue