File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -504,6 +504,11 @@ var compareTemplate = template.Must(template.New("").Funcs(template.FuncMap{
504
504
{{- print " {"}} name({{.Name}}){{with .DeprecatedSince}}; deprecatedSince({{.}});{{end}}{{print " }"}}
505
505
{{end}}` ))
506
506
507
+ // hiddenAPIs list of hidden API.
508
+ var hiddenAPIs = map [string ]bool {
509
+ "nvim__set_hl_ns" : true ,
510
+ }
511
+
507
512
// specialAPIs lists API calls that are implemented by hand.
508
513
var specialAPIs = map [string ]bool {
509
514
"nvim_call_atomic" : true ,
@@ -538,8 +543,11 @@ func compareFunctions(functions []*Function) error {
538
543
for i < len (functions ) && j < len (info .Functions ) {
539
544
a := convertToNvimTypes (functions [i ])
540
545
b := info .Functions [j ]
546
+
541
547
if a .Name < b .Name {
542
- data .Extra = append (data .Extra , a )
548
+ if ! hiddenAPIs [a .Name ] {
549
+ data .Extra = append (data .Extra , a )
550
+ }
543
551
i ++
544
552
continue
545
553
}
@@ -550,6 +558,7 @@ func compareFunctions(functions []*Function) error {
550
558
j ++
551
559
continue
552
560
}
561
+
553
562
equal := len (a .Parameters ) == len (b .Parameters ) && a .ReturnType == b .ReturnType && a .DeprecatedSince == b .DeprecatedSince
554
563
if equal {
555
564
for i := range a .Parameters {
You can’t perform that action at this time.
0 commit comments