From 05612989f0e0f3b8b073d37ade3c4e9ec4bf4695 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 28 Mar 2022 00:19:05 +0200 Subject: [PATCH] Fix escaping of new lines in wxRegEx documentation There doesn't seem to be any way to use backslashes with @c: with a single backslash, it's interpreted as a command, but a double backslash appears in the output. So use `\b` instead of @c \b and also use `...` elsewhere for consistency. Also fix wxRE_NEWLINE description formatting. --- interface/wx/regex.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/interface/wx/regex.h b/interface/wx/regex.h index 1b72830e7b..dc56ad1c81 100644 --- a/interface/wx/regex.h +++ b/interface/wx/regex.h @@ -33,9 +33,9 @@ enum Use basic regular expression syntax, close to its POSIX definition, but with some extensions still available. - The word start/end boundary assertions @c "\<" and @c "\>" are only - available when using basic syntax, use @c "[[:<:]] and @c "[[:>:]]" or - just more general word boundary assertion @c "\b" when not using it. + The word start/end boundary assertions `\<` and `\>` are only + available when using basic syntax, use `[[:<:]]` and `[[:>:]]` or + just more general word boundary assertion `\b` when not using it. */ wxRE_BASIC = 2, @@ -46,9 +46,11 @@ enum wxRE_NOSUB = 8, /** - If not set, treat '\n' as an ordinary character, otherwise it is - special: it is not matched by '.' and '^' and '$' always match - after/before it regardless of the setting of wxRE_NOT[BE]OL. + If not set, treat `\n` as an ordinary character. + + Otherwise `\n` is special: it is not matched by `.` and `^` and `$` + always match after/before it regardless of the setting of + ::wxRE_NOTBOL and ::wxRE_NOTEOL. */ wxRE_NEWLINE = 16,