28.1.1.3 Escaping special characters in macro definitions

You can use a backslash in a macro to escape other characters, such as “\”, “<”, “>”, “"”, “$”, “;” and “ ” (space). For example, if you need to start a macro content line with “[” or “;” (left bracket or semicolon), preface the line with a backslash, to keep the line from being treated as a comment or section head:

[MyMacro]

\; This is not a configuration-file comment

; This is a configuration-file comment

\[NotTheNextSection]

[TheNextSection]

To specify a trailing space at the end of a macro, insert any of the following:

two spaces

(a backslash followed by a space)

\~ (a backslash followed by a tilde).

The \~ convention is especially helpful, because it allows you to show that a space is unequivocally intended.

To include a comment in macro definitions, see §28.1.1.5 Including comments in macro definitions.