4 #include "yaml-cpp/exceptions.h"
8 const std::string
ScanVerbatimTag(Stream
& INPUT
)
12 // eat the start character
16 if(INPUT
.peek() == Keys::VerbatimTagEnd
) {
17 // eat the end character
22 int n
= Exp::URI().Match(INPUT
);
29 throw ParserException(INPUT
.mark(), ErrorMsg::END_OF_VERBATIM_TAG
);
32 const std::string
ScanTagHandle(Stream
& INPUT
, bool& canBeHandle
)
36 Mark firstNonWordChar
;
39 if(INPUT
.peek() == Keys::Tag
) {
41 throw ParserException(firstNonWordChar
, ErrorMsg::CHAR_IN_TAG_HANDLE
);
47 n
= Exp::Word().Match(INPUT
);
50 firstNonWordChar
= INPUT
.mark();
55 n
= Exp::Tag().Match(INPUT
);
66 const std::string
ScanTagSuffix(Stream
& INPUT
)
71 int n
= Exp::Tag().Match(INPUT
);
79 throw ParserException(INPUT
.mark(), ErrorMsg::TAG_WITH_NO_SUFFIX
);