Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't capture comments.
  • Loading branch information
jnthn committed May 26, 2012
1 parent 12b2cd7 commit c297695
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Perl6/Grammar.pm
Expand Up @@ -144,7 +144,7 @@ grammar Perl6::Grammar is HLL::Grammar {
# :dba('horizontal whitespace')
[
| ^^ <?before \h* '=' [ \w | '\\'] > <.pod_content_toplevel>
| \h* <comment>
| \h* <.comment>
| \h+
]
}
Expand All @@ -157,7 +157,7 @@ grammar Perl6::Grammar is HLL::Grammar {

token comment:sym<#`(...)> {
'#`' {}
[ <quote_EXPR> || <.typed_panic: 'X::Syntax::Comment::Embedded'> ]
[ <.quote_EXPR> || <.typed_panic: 'X::Syntax::Comment::Embedded'> ]
}

token comment:sym<#=(...)> {
Expand Down

0 comments on commit c297695

Please sign in to comment.