We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e8fc3e commit d23bba5Copy full SHA for d23bba5
1 file changed
aider/repomap.py
@@ -448,7 +448,12 @@ def get_ranked_tags(
448
definers = defines[ident]
449
450
mul = 1.0
451
- # if ident is snake_case or camelCase, mul * 10 ai!
+ # Check for snake_case (contains underscore, no uppercase)
452
+ if "_" in ident and not any(c.isupper() for c in ident):
453
+ mul *= 10
454
+ # Check for camelCase (no underscore, starts with lowercase, has uppercase)
455
+ elif not "_" in ident and ident[0].islower() and any(c.isupper() for c in ident):
456
457
if ident in mentioned_idents:
458
mul *= 10
459
if ident.startswith("_"):
0 commit comments