Merge branch 'main' of github.com:Aider-AI/aider

This commit is contained in:
Paul Gauthier 2025-06-25 11:37:02 -07:00
commit d9e3ede000
2 changed files with 9 additions and 1 deletions

View file

@ -0,0 +1,7 @@
(list_lit
meta: _*
. (sym_lit name: (sym_name) @ignore)
. (sym_lit name: (sym_name) @name.definition.method)
(#match? @ignore "^def.*"))
(sym_lit name: (sym_name) @name.reference.call)

View file

@ -468,10 +468,11 @@ class RepoMap:
mul = 1.0
is_snake = ("_" in ident) and any(c.isalpha() for c in ident)
is_kebab = ("-" in ident) and any(c.isalpha() for c in ident)
is_camel = any(c.isupper() for c in ident) and any(c.islower() for c in ident)
if ident in mentioned_idents:
mul *= 10
if (is_snake or is_camel) and len(ident) >= 8:
if (is_snake or is_kebab or is_camel) and len(ident) >= 8:
mul *= 10
if ident.startswith("_"):
mul *= 0.1