mirror of
https://github.com/matrix-construct/construct
synced 2024-11-17 15:30:52 +01:00
ircd::rfc1459: Allow generation of single character params, and empty strings.
This commit is contained in:
parent
99ad299ef0
commit
fb50f82b6e
2 changed files with 2 additions and 2 deletions
|
@ -122,7 +122,7 @@ rfc1459::gen::grammar<it, top>::grammar(karma::rule<it, top> &top_rule)
|
||||||
}
|
}
|
||||||
,middle // Spaced parameters
|
,middle // Spaced parameters
|
||||||
{
|
{
|
||||||
~char_(":\x20\r\n") << +(~char_("\x20\r\n"))
|
~char_(":\x20\r\n") << *(~char_("\x20\r\n"))
|
||||||
,"middle"
|
,"middle"
|
||||||
}
|
}
|
||||||
,params //TODO: this doesn't work yet, don't use
|
,params //TODO: this doesn't work yet, don't use
|
||||||
|
|
|
@ -476,7 +476,7 @@ const
|
||||||
{
|
{
|
||||||
karma::rule<char *, std::string()> printable
|
karma::rule<char *, std::string()> printable
|
||||||
{
|
{
|
||||||
+char_(rfc1459::character::gather(rfc1459::character::PRINT))
|
*char_(rfc1459::character::gather(rfc1459::character::PRINT))
|
||||||
};
|
};
|
||||||
|
|
||||||
generator(): grammar{printable} {}
|
generator(): grammar{printable} {}
|
||||||
|
|
Loading…
Reference in a new issue