projects
/
p5sagit/Function-Parameters.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
import some (modified) signatures tests
[p5sagit/Function-Parameters.git]
/
Parameters.xs
diff --git
a/Parameters.xs
b/Parameters.xs
index
2031f0b
..
d6b69a7
100644
(file)
--- a/
Parameters.xs
+++ b/
Parameters.xs
@@
-673,6
+673,10
@@
static int parse_fun(pTHX_ OP **pop, const char *keyword_ptr, STRLEN keyword_len
my_check_prototype(aTHX_ declarator, proto);
lex_read_space(0);
c = lex_peek_unichar(0);
+ if (!(c == ':' || c == '{')) {
+ lex_stuff_pvs(":", 0);
+ c = ':';
+ }
}
}