File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ \subsection{Comments\label{comments}}
7575\subsection {Encoding declarations\label {encodings } }
7676
7777If a comment in the first or second line of the Python script matches
78- the regular expression " coding[=:]\s*([\w-_.]+)" , this comment is
78+ the regular expression \regexp { coding[=:]\e s*([\e w-_.]+)} , this comment is
7979processed as an encoding declaration; the first group of this
8080expression names the encoding of the source code file. The recommended
8181forms of this expression are
@@ -91,9 +91,9 @@ \subsection{Encoding declarations\label{encodings}}
9191\end {verbatim }
9292
9393which is recognized by Bram Moolenar's VIM. In addition, if the first
94- bytes of the file are the UTF-8 signature ( $ ' \xef\xbb\xbf ' $ ), the
95- declared file encoding is UTF-8 (this is supported, among others, by
96- Microsoft's notepad.exe ).
94+ bytes of the file are the UTF-8 byte-order mark
95+ ( \code {' \e xef \e xbb \e xbf'}), the declared file encoding is UTF-8
96+ (this is supported, among others, by Microsoft's \program { notepad} ).
9797
9898If an encoding is declared, the encoding name must be recognized by
9999Python. % XXX there should be a list of supported encodings.
You can’t perform that action at this time.
0 commit comments