Skip to content
This repository was archived by the owner on Feb 3, 2021. It is now read-only.

Commit 14741af

Browse files
committed
change error reporting in <charspec>
This makes no difference in nqp itself, but in rakudo the old way caused a "Method 'paniuc' not found for invocant of class 'Regex;Match'
1 parent 96e4b67 commit 14741af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/HLL/Grammar.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ grammar HLL::Grammar;
119119
| '[' <charnames> ']'
120120
| \d+ [ _ \d+]*
121121
| <[ ?..Z ]>
122-
| <.panic: 'Unrecognized \\c character'>
122+
| { $/.CURSOR.panic('Unrecognized \\c character') }
123123
]
124124
}
125125

0 commit comments

Comments
 (0)