From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 8 May 2025 01:42:05 +0000 (+0200) Subject: [3.13] gh-127833: lexical analysis: Add backticks to BOM example (GH-132407) (#133633) X-Git-Tag: v3.13.4~152 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a063d6c794d682263bb23370968521a0d1bd6e13;p=thirdparty%2FPython%2Fcpython.git [3.13] gh-127833: lexical analysis: Add backticks to BOM example (GH-132407) (#133633) gh-127833: lexical analysis: Add backticks to BOM example (GH-132407) (cherry picked from commit 0552ce0fb24d33b51fdd02a589ede95aabc0d8b5) Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> --- diff --git a/Doc/reference/lexical_analysis.rst b/Doc/reference/lexical_analysis.rst index 6fbe922cad6a..0bfd63d5b33b 100644 --- a/Doc/reference/lexical_analysis.rst +++ b/Doc/reference/lexical_analysis.rst @@ -99,7 +99,7 @@ which is recognized by Bram Moolenaar's VIM. If no encoding declaration is found, the default encoding is UTF-8. If the implicit or explicit encoding of a file is UTF-8, an initial UTF-8 byte-order -mark (b'\xef\xbb\xbf') is ignored rather than being a syntax error. +mark (``b'\xef\xbb\xbf'``) is ignored rather than being a syntax error. If an encoding is declared, the encoding name must be recognized by Python (see :ref:`standard-encodings`). The