Skip to content

Commit

Permalink
disallow all null and whitespacey ops
Browse files Browse the repository at this point in the history
  • Loading branch information
TimToady committed Nov 17, 2012
1 parent e17ff6a commit d38bbd0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CursorBase.pmc
Expand Up @@ -2719,6 +2719,8 @@ sub add_categorical { my $lang = shift;
else { else {
@list = $mangle; @list = $mangle;
} }
$lang->panic('Whitespace is not allowed in an operator') if grep { /\s/ } @list;
@list = () if grep { !length } @list;
$mangle = ::mangle(@list); $mangle = ::mangle(@list);
$mangle = $category . '__S_' . sprintf("%03d",$GEN++) . $mangle; $mangle = $category . '__S_' . sprintf("%03d",$GEN++) . $mangle;


Expand Down

0 comments on commit d38bbd0

Please sign in to comment.