Skip to content

Commit

Permalink
A few more panics on malformed code from STD.pm. Resolves RT#59828.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Feb 11, 2009
1 parent fba805c commit 1b7a3e3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/parser/grammar.pg
Expand Up @@ -383,6 +383,7 @@ rule routine_def {
[ <deflongname=identifier> ]? [ <multisig> | <trait> ]*
<block>
{*}
|| <.panic: "Malformed routine definition">
}

rule method_def {
Expand All @@ -393,6 +394,7 @@ rule method_def {
]
<block>
{*}
|| <.panic: "Malformed method definition">
}

rule trait {
Expand Down Expand Up @@ -875,7 +877,9 @@ rule regex_declarator {
}

rule regex_def {
<deflongname=name>? <regex_block> {*}
<deflongname=name>?
<regex_block> {*}
|| <.panic: "Malformed regex definition">
}

token regex_block {
Expand Down

0 comments on commit 1b7a3e3

Please sign in to comment.