| 7 | |
| 8 | namespace YAML { |
| 9 | const std::string ScanVerbatimTag(Stream& INPUT) { |
| 10 | std::string tag; |
| 11 | |
| 12 | // eat the start character |
| 13 | INPUT.get(); |
| 14 | |
| 15 | while (INPUT) { |
| 16 | if (INPUT.peek() == Keys::VerbatimTagEnd) { |
| 17 | // eat the end character |
| 18 | INPUT.get(); |
| 19 | return tag; |
| 20 | } |
| 21 | |
| 22 | int n = Exp::URI().Match(INPUT); |
| 23 | if (n <= 0) |
| 24 | break; |
| 25 | |
| 26 | tag += INPUT.get(n); |
| 27 | } |
| 28 | |
| 29 | throw ParserException(INPUT.mark(), ErrorMsg::END_OF_VERBATIM_TAG); |
| 30 | } |
| 31 | |
| 32 | const std::string ScanTagHandle(Stream& INPUT, bool& canBeHandle) { |
| 33 | std::string tag; |