mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 16:54:59 +00:00
Merge 59dbce8575
into 3caab85931
This commit is contained in:
commit
11daced415
2 changed files with 9 additions and 1 deletions
7
aider/queries/tree-sitter-language-pack/clojure-tags.scm
Normal file
7
aider/queries/tree-sitter-language-pack/clojure-tags.scm
Normal 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)
|
|
@ -468,10 +468,11 @@ class RepoMap:
|
||||||
mul = 1.0
|
mul = 1.0
|
||||||
|
|
||||||
is_snake = ("_" in ident) and any(c.isalpha() for c in ident)
|
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)
|
is_camel = any(c.isupper() for c in ident) and any(c.islower() for c in ident)
|
||||||
if ident in mentioned_idents:
|
if ident in mentioned_idents:
|
||||||
mul *= 10
|
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
|
mul *= 10
|
||||||
if ident.startswith("_"):
|
if ident.startswith("_"):
|
||||||
mul *= 0.1
|
mul *= 0.1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue