Skip to content

Commit cfa5941

Browse files
committed
WIP
1 parent 0156550 commit cfa5941

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

src/parser.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2589,7 +2589,7 @@ void read_integer(parser *p, mp_int v2, int base, const char **srcptr)
25892589
src++;
25902590
}
25912591

2592-
if ((last_ch == '_') && (iswspace(*src) || (*src == '%'))) {
2592+
if (last_ch == '_') {
25932593
p->srcptr = (char*)src;
25942594
src = eat_space(p);
25952595
}

tests/issues/test903.expected

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
ok1
22
ok2
3-
123
4-
291
3+
3
4+
4
55
ok5
6-
123
6+
6
7+
7

tests/issues/test903.pl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
main :-
44
catch((number_chars(_,"0_%0"),fail), _, write(ok1)), nl,
55
catch((number_chars(_,"0x0_/*b"),fail), _, write(ok2)), nl,
6-
number_chars(N3,"0_\n123"), write(N3), nl,
7-
number_chars(N4,"0x0_\n123"), write(N4), nl,
6+
number_chars(N3,"0_\n3"), write(N3), nl,
7+
number_chars(N4,"0x0_\n4"), write(N4), nl,
88
catch((number_chars(_,"0x0_\n%1"),fail), _, write(ok5)), nl,
9-
number_chars(N5,"0_%\n123"), write(N5), nl.
9+
number_chars(N6,"0_%\n6"), write(N6), nl,
10+
number_chars(N7,"0_/**/\n7"), write(N7), nl.
1011

0 commit comments

Comments
 (0)