Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
allow TCLish -foo => bar form
  • Loading branch information
TimToady committed Sep 10, 2012
1 parent b87ea13 commit 942bb1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions STD_P5.pm6
Expand Up @@ -823,7 +823,7 @@ token termish {
}
}

token p5term:fatarrow { <fatarrow> }
token p5term:fatkey { <fatkey> }

token p5term:variable { <variable>
[
Expand All @@ -843,8 +843,8 @@ token p5term:value { <value=p5value> }
token p5term:capterm { <capterm> }
token p5term:statement_prefix { <statement_prefix=p5statement_prefix> }

token fatarrow {
<key=identifier> \h* '=>' <.ws> <val=EXPR(item %assignment)>
token fatkey {
'-'?<key=identifier> <?before \h* '=>' >
}

# Most of these special variable rules are there simply to catch old p5 brainos
Expand Down

0 comments on commit 942bb1c

Please sign in to comment.