Skip to content

Commit

Permalink
Found some changes??
Browse files Browse the repository at this point in the history
  • Loading branch information
jmeaster30 committed Oct 13, 2023
1 parent f6ee520 commit 6bba46d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libvore/parser_regexp.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ func parse_regexp_groups(regexp_token *Token, regexp string, index int) (AstLite
current = regexp[current_index]
}
if regexp[current_index] != '>' {
return nil, current_index, NewParseError(*regexp_token, "Unexpected charactrer in named capture group identifier.")
return nil, current_index, NewParseError(*regexp_token, "Unexpected character in named capture group identifier.")
}
body, next_index, err := parse_regexp_disjunction(regexp_token, regexp, current_index+1)
if err != nil {
Expand All @@ -403,7 +403,7 @@ func parse_regexp_groups(regexp_token *Token, regexp string, index int) (AstLite
return &AstSubExpr{[]AstExpression{&AstDec{identifier, &AstSubExpr{body}}}}, next_index + 1, nil
}
}
panic("THIS IS A TEST WE SHOULDN'T HIT THIS")
return nil, index, NewParseError(*regexp_token, "Invalid marker for group")
}

subexpr, next_index, err := parse_regexp_disjunction(regexp_token, regexp, index)
Expand Down

0 comments on commit 6bba46d

Please sign in to comment.