scryer-prolog
scryer-prolog copied to clipboard
Goal in "-g" switch unexpectedly does not yield a syntax error if it contains a newline
UPDATE: I have now reduced the issue to the following test case:
$ scryer-prolog -g $'write("Hello,\nworld"),halt'
?-
Expected, as in earlier Scryer Prolog versions:
$ scryer-prolog -g $'write("Hello,\nworld"),halt'
error(syntax_error(missing_quote),read_term_from_chars/2:0) causes: error(existence_error(procedure,error/2),error/2)
Emacs replaces \n by the actual newline and Scryer conformingly does not like newlines in a quoted token
Solved with #1891.