]> Repositorios git - scryer-prolog.git/commit
Line numbers start at 1
authorDavid Farrell <[email protected]>
Sat, 1 Feb 2025 19:02:34 +0000 (14:02 -0500)
committerDavid Farrell <[email protected]>
Sun, 2 Feb 2025 13:16:05 +0000 (08:16 -0500)
commitf509d3d66f7522cf57f06ff67024663d8d37d54c
treec015a79aecdab2030bafebab5221b07f63abbdba
parentc548b14f5028c0e6601575ca4d3ac5bfa67663f4
Line numbers start at 1

Bumps the line number for the singleton warning. When the singleton
occurs on the same line at the term starts, the line number is correct:

    foo(X).

However it stills mis-reports this line number as 1 instead of 5:

    foo(1) :-
        true,
        true,
        true,
        Y.

See issue #1356.
src/loader.pl
tests/scryer/cli/src_tests/directive_errors.md
tests/scryer/main.rs