mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +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
|
||||
{
|
||||
~char_(":\x20\r\n") << +(~char_("\x20\r\n"))
|
||||
~char_(":\x20\r\n") << *(~char_("\x20\r\n"))
|
||||
,"middle"
|
||||
}
|
||||
,params //TODO: this doesn't work yet, don't use
|
||||
|
|
|
@ -476,7 +476,7 @@ const
|
|||
{
|
||||
karma::rule<char *, std::string()> printable
|
||||
{
|
||||
+char_(rfc1459::character::gather(rfc1459::character::PRINT))
|
||||
*char_(rfc1459::character::gather(rfc1459::character::PRINT))
|
||||
};
|
||||
|
||||
generator(): grammar{printable} {}
|
||||
|
|
Loading…
Reference in a new issue