in pkg/dataplane/internal/challenge/challenge_parser.go [2949:3015]
func (p *ChallengeParser) Quoted_pair() (localctx IQuoted_pairContext) {
localctx = NewQuoted_pairContext(p, p.GetParserRuleContext(), p.GetState())
p.EnterRule(localctx, 22, ChallengeParserRULE_quoted_pair)
p.EnterOuterAlt(localctx, 1)
{
p.SetState(171)
p.Match(ChallengeParserBACKSLASH)
if p.HasError() {
// Recognition error - abort rule
goto errorExit
}
}
p.SetState(176)
p.GetErrorHandler().Sync(p)
if p.HasError() {
goto errorExit
}
switch p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 18, p.GetParserRuleContext()) {
case 1:
{
p.SetState(172)
p.Match(ChallengeParserHTAB)
if p.HasError() {
// Recognition error - abort rule
goto errorExit
}
}
case 2:
{
p.SetState(173)
p.Match(ChallengeParserSP)
if p.HasError() {
// Recognition error - abort rule
goto errorExit
}
}
case 3:
{
p.SetState(174)
p.Vchar()
}
case 4:
{
p.SetState(175)
p.Obs_text()
}
case antlr.ATNInvalidAltNumber:
goto errorExit
}
errorExit:
if p.HasError() {
v := p.GetError()
localctx.SetException(v)
p.GetErrorHandler().ReportError(p, v)
p.GetErrorHandler().Recover(p, v)
p.SetError(nil)
}
p.ExitRule()
return localctx
goto errorExit // Trick to prevent compiler error if the label is not used
}