diff --git a/src/etc/htmldocck.py b/src/etc/htmldocck.py
index 2111b21fe59..3d7ead99282 100755
--- a/src/etc/htmldocck.py
+++ b/src/etc/htmldocck.py
@@ -270,7 +270,7 @@ KNOWN_DIRECTIVE_NAMES = get_known_directive_names()
LINE_PATTERN = re.compile(r'''
//@\s+
- (?P!?)(?P[A-Za-z]+(?:-[A-Za-z]+)*)
+ (?P!?)(?P[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*)
(?P.*)$
''', re.X | re.UNICODE)