Subject: | class WORD::WORD { not supported |
At present, it appears that:
class FOO::BAR {
}
is parsed as
class FOO ::BAR {
}
and translated to
package Foo ::Bar {
}
And that additional whitespace results in an error
--[ Sample Failure Code ]--
use strict;
use warnings;
use utf8;
use MooseX::Declare;
class A {
}
class B::Suffix {
}
class C::Double::Suffix {
}
-- [ Error output ]--
16: Unexpected ':' after package name 'package B'
20: package C ::Double::Suffix { #__CLASS 2
^
found package where operator expected
Missing ';' above?
20: Unexpected ':' after package name 'package C'
This fails it seems, due to
q[:] not matching \w