diff options
author | Jonathan Corbet <corbet@lwn.net> | 2025-09-05 15:53:05 -0600 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2025-09-18 10:19:53 -0600 |
commit | fee63c8f10c2fe77f618f9955c2f5521ff9cc622 (patch) | |
tree | 95905d10257cbe83e7b9a56a90320b721a01a23a | |
parent | a2752f8c631201e189f501fc4d320354efa3e72e (diff) |
docs: kdoc: remove a couple of spurious regex characters
The "name" regex in dump_function() includes both the tilde and colon
characters, but neither has any place in function prototypes. Remove the
characters, after which the regex simplifies to "\w+"
No output changes.
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
-rw-r--r-- | scripts/lib/kdoc/kdoc_parser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/kdoc/kdoc_parser.py b/scripts/lib/kdoc/kdoc_parser.py index 1a1558211acd..decd127df82e 100644 --- a/scripts/lib/kdoc/kdoc_parser.py +++ b/scripts/lib/kdoc/kdoc_parser.py @@ -958,7 +958,7 @@ class KernelDoc: # - atomic_set (macro) # - pci_match_device, __copy_to_user (long return type) - name = r'[a-zA-Z0-9_~:]+' + name = r'\w+' prototype_end1 = r'[^\(]*' prototype_end2 = r'[^\{]*' prototype_end = fr'\(({prototype_end1}|{prototype_end2})\)' |