Skip to content

Commit 70f5dd3

Browse files
authored
score: always upscore symbol matches (#662)
1 parent 081cd03 commit 70f5dd3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

contentprovider.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,10 @@ func scoreKind(language string, kind string) float64 {
680680
factor = 5
681681
case "var", "variable":
682682
factor = 4
683+
684+
default:
685+
// No idea what it is, but its something regarded as a symbol
686+
factor = 1
683687
}
684688

685689
// Refer to universal-ctags --list-kinds-full=<language> to learn about which

0 commit comments

Comments
 (0)