Skip to content

Commit e8be3b6

Browse files
committed
S_scan_ident: Use mnemonic for soft hyphen code point
1 parent 845e6ce commit e8be3b6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

toke.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10851,10 +10851,8 @@ S_scan_ident(pTHX_ char *s, char *dest, char *dest_end, U32 flags)
1085110851

1085210852
if ( (s <= PL_bufend - ((is_utf8) ? UTF8SKIP(s) : 1))
1085310853
&& ( isGRAPH_A(*s)
10854-
|| (is_utf8
10855-
? isIDFIRST_utf8_safe(s, PL_bufend)
10856-
: ( isGRAPH_L1(*s)
10857-
&& LIKELY((U8) *s != LATIN1_TO_NATIVE(0xAD))))))
10854+
|| (is_utf8 ? isIDFIRST_utf8_safe(s, PL_bufend)
10855+
: (isGRAPH_L1(*s) && LIKELY((U8) *s != SHY_NATIVE)))))
1085810856
{
1085910857
if (is_utf8) {
1086010858
const STRLEN skip = UTF8SKIP(s);

0 commit comments

Comments
 (0)