We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54b2cee commit 26af9ffCopy full SHA for 26af9ff
util/update_quick_index.py
@@ -391,7 +391,10 @@
391
392
# Patterns + default config dict
393
CLASS_RE = re.compile(r"^class ([A-Za-z0-9]+[^\(:]*)")
394
-FUNCTION_RE = re.compile("^def ([a-z][a-z0-9_]*)")
+# Yes, the capital letters in this pattern are intentional. They
395
+# capture type instantiation helpers which act like type init calls
396
+# in the rect, box, and other modules.
397
+FUNCTION_RE = re.compile("^def ([a-zA-Z][a-zA-Z0-9_]*)")
398
TYPE_RE = re.compile("^(?!LOG =)([A-Za-z][A-Za-z0-9_]*) =")
399
DEFAULT_EXPRESSIONS = {
400
'class': CLASS_RE,
0 commit comments