Permalink
Browse files

tweak formatting

  • Loading branch information...
1 parent 38b15e4 commit 091b1c35eadc5d9aadf0e977bfae66db546e9e17 @erikfrey erikfrey committed Aug 25, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/net/request.cpp
View
@@ -36,15 +36,18 @@ request_grammar::request_grammar()
get_option =
lit("/open") [phoenix::ref(req.get_open) = true]
- | lit("/peek") [phoenix::ref(req.get_peek) = true]
+ | lit("/peek") [phoenix::ref(req.get_peek) = true]
| lit("/close") [phoenix::ref(req.get_close) = true]
| lit("/abort") [phoenix::ref(req.get_abort) = true]
| (
lit("/t=")
>> qi::uint_ [phoenix::ref(req.wait_ms) = qi::_1]
);
- get = (lit("get ")|lit("gets ")) [phoenix::ref(req.type) = request::RT_GET]
+ get =
+ lit("get") [phoenix::ref(req.type) = request::RT_GET]
+ >> -lit('s') // "gets" is okay too
+ >> ' '
>> key_name [phoenix::ref(req.queue) = qi::_1]
>> *get_option;

0 comments on commit 091b1c3

Please sign in to comment.