Skip to content

Commit

Permalink
Update =begin/=end handling slightly (RT #65782).
Browse files Browse the repository at this point in the history
  • Loading branch information
pmichaud committed May 19, 2009
1 parent ac60b66 commit 595d364
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/parser/grammar.pg
Expand Up @@ -121,10 +121,12 @@ token afterws {
token pod_comment {
^^ '=' <.unsp>?
[
| 'begin' \h+ 'END' >> ::
[ .*? \n '=' <.unsp>? 'end' \h+ 'END' >> \N* || .* ]
| 'begin' \h+ <identifier> ::
[
|| .*? \n '=' <.unsp>? 'end' \h+ $<identifier> >> \N* {*} #= tagged
|| .* {*} #= end
|| <.panic: "=begin without matching =end">
]
| 'begin' >> :: \h*
[ $$ || '#' || <.panic: "Unrecognized token after =begin"> ]
Expand Down

0 comments on commit 595d364

Please sign in to comment.