Skip to content

Commit d38bbd0

Browse files
committed
disallow all null and whitespacey ops
1 parent e17ff6a commit d38bbd0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CursorBase.pmc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2719,6 +2719,8 @@ sub add_categorical { my $lang = shift;
27192719
else {
27202720
@list = $mangle;
27212721
}
2722+
$lang->panic('Whitespace is not allowed in an operator') if grep { /\s/ } @list;
2723+
@list = () if grep { !length } @list;
27222724
$mangle = ::mangle(@list);
27232725
$mangle = $category . '__S_' . sprintf("%03d",$GEN++) . $mangle;
27242726

0 commit comments

Comments
 (0)