(&mut self, term: char)
| 205 | } |
| 206 | |
| 207 | fn read_name(&mut self, term: char) -> Result<String, ParseError> { |
| 208 | let mut s = String::new(); |
| 209 | while let Some(c) = self.peek() { |
| 210 | if c == term { break; } |
| 211 | s.push(c); |
| 212 | self.bump(); |
| 213 | } |
| 214 | if self.peek() != Some(term) { return Err(self.err("missing group name terminator")); } |
| 215 | self.bump(); |
| 216 | if s.is_empty() { return Err(self.err("missing group name")); } |
| 217 | Ok(s) |
| 218 | } |
| 219 | |
| 220 | fn read_flags(&mut self) -> Result<(), ParseError> { |
| 221 | while let Some(c) = self.peek() { |