Skip to content

Commit fee63c8

Browse files
author
Jonathan Corbet
committed
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>
1 parent a2752f8 commit fee63c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/lib/kdoc/kdoc_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -958,7 +958,7 @@ def dump_function(self, ln, prototype):
958958
# - atomic_set (macro)
959959
# - pci_match_device, __copy_to_user (long return type)
960960

961-
name = r'[a-zA-Z0-9_~:]+'
961+
name = r'\w+'
962962
prototype_end1 = r'[^\(]*'
963963
prototype_end2 = r'[^\{]*'
964964
prototype_end = fr'\(({prototype_end1}|{prototype_end2})\)'

0 commit comments

Comments
 (0)