Pattern for highlighting @mentions and /commands in rendered
user messages.
Matches either:
/help)@file mentions anywhere in the text (e.g., @README.md)Note: The ^ anchor matches start of string, not start of line. The consumer
in UserMessage.compose() additionally checks start == 0 before styling
slash commands, so a / mid-string is not highlighted.
INPUT_HIGHLIGHT_PATTERN = re.compile('(^\\/[a-zA-Z0-9_-]+|@(?:\\\\.|[' PATH_CHAR_CLASS '])+)')