django
django copied to clipboard
Fixed #23356: Removed hardcoded verbatim logic from Lexer.
The verbatim tag was a special case handled in the Lexer. Added Parser.parse_verbatim() that can be called by any custom tag that needs to implement verbatim like behaviour.
@felixxm Branch now rebased to main.
Changes in main
mean that create_token()
is now even simpler!
Thanks for your time.
Closing per comment.