Permalink
Browse files

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'
  • Loading branch information...
1 parent 96e4b67 commit 14741af69ccf7fdfe6270f5a9560f062ed1a0f43 @moritz moritz committed Feb 11, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/HLL/Grammar.pm
View
@@ -119,7 +119,7 @@ grammar HLL::Grammar;
| '[' <charnames> ']'
| \d+ [ _ \d+]*
| <[ ?..Z ]>
- | <.panic: 'Unrecognized \\c character'>
+ | { $/.CURSOR.panic('Unrecognized \\c character') }
]
}

0 comments on commit 14741af

Please sign in to comment.