0
0
Fork 0
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:
Jason Volk 2016-09-17 19:13:50 -07:00
parent 99ad299ef0
commit fb50f82b6e
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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} {}