Skip to content

Commit

Permalink
Ununderscore typo_typename
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Jun 11, 2023
1 parent f05cd03 commit 7661383
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Raku/Grammar.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -2305,7 +2305,7 @@ grammar Raku::Grammar is HLL::Grammar does Raku::Common {
| $
]
> {} <.malformed("$*SCOPE (did you mean to declare a sigilless \\{~$<ident>} or \${~$<ident>}?)")>
|| <.ws><!typename> <typo_typename> <!>
|| <.ws><!typename> <typo-typename> <!>
|| <.malformed($*SCOPE)>
]
}
Expand Down Expand Up @@ -2933,7 +2933,7 @@ grammar Raku::Grammar is HLL::Grammar does Raku::Common {
[<.ws> 'of' <.ws> <typename> ]?
}
token typo_typename($panic = 0) {
token typo-typename($panic = 0) {
<longname>
{
#TODO bring back suggestions for which types may have been meant
Expand Down Expand Up @@ -2969,7 +2969,7 @@ grammar Raku::Grammar is HLL::Grammar does Raku::Common {
<.ws>
[ <?before '-->' | ')' | ']' | '{' | ':'\s | ';;' > || <.malformed('parameter')> ]
{ $*IN-DECL := ''; }
[ '-->' <.ws> [ || [<typename>|<value>||<typo_typename(1)>] <.ws>
[ '-->' <.ws> [ || [<typename>|<value>||<typo-typename(1)>] <.ws>
[ || <?[ { ) ]>
|| <?before <.param_sep>? <.parameter>>
<.malformed('return value (return constraints only allowed at the end of the signature)')>
Expand Down

0 comments on commit 7661383

Please sign in to comment.