]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit - scripts/kernel-doc
scripts/kernel-doc: Escape all literal braces in regexes
authorBen Hutchings <ben@decadent.org.uk>
Sun, 5 Aug 2018 16:41:09 +0000 (17:41 +0100)
committerJonathan Corbet <corbet@lwn.net>
Mon, 6 Aug 2018 19:36:20 +0000 (13:36 -0600)
commit673bb2dfc36488abfdbbfc2ce2631204eaf682f2
treee7caada77d3ec0a1ecf34a70f7e605444a6e45a2
parent0bf1bd84f3657dc51acb9d30629c1967a6b91e76
scripts/kernel-doc: Escape all literal braces in regexes

Commit 701b3a3c0ac4 ("PATCH scripts/kernel-doc") fixed the two
instances of literal braces that Perl 5.28 warns about, but there are
still more than it doesn't warn about.

Escape all left braces that are treated as literal characters.  Also
escape literal right braces, for consistency and to avoid confusing
bracket-matching in text editors.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
scripts/kernel-doc