|
1 | 1 | // +build ignore
|
2 | 2 |
|
3 |
| -// Command apitool generates apiimp.go from apidef.go. The command also has |
4 |
| -// an option to compare apidef.go to Nvim's current API meta data. |
| 3 | +// Command apitool generates api.go from api_def.go. The command also has |
| 4 | +// an option to compare api_def.go to Nvim's current API meta data. |
5 | 5 | package main
|
6 | 6 |
|
7 | 7 | import (
|
@@ -121,10 +121,10 @@ func parseFields(fset *token.FileSet, fl *ast.FieldList) []*Field {
|
121 | 121 | return fields
|
122 | 122 | }
|
123 | 123 |
|
124 |
| -// parseAPIDef parses the file apidef.go. |
| 124 | +// parseAPIDef parses the file api_def.go. |
125 | 125 | func parseAPIDef() ([]*Function, error) {
|
126 | 126 | fset := token.NewFileSet()
|
127 |
| - file, err := parser.ParseFile(fset, "apidef.go", nil, parser.ParseComments) |
| 127 | + file, err := parser.ParseFile(fset, "api_def.go", nil, parser.ParseComments) |
128 | 128 | if err != nil {
|
129 | 129 | return nil, err
|
130 | 130 | }
|
@@ -502,8 +502,8 @@ func dumpAPI() error {
|
502 | 502 | func main() {
|
503 | 503 | log.SetFlags(log.Lshortfile)
|
504 | 504 |
|
505 |
| - generateFlag := flag.String("generate", "", "Generate implementation from apidef.go and write to `file`") |
506 |
| - compareFlag := flag.Bool("compare", false, "Compare apidef.go to the output of nvim --api-info") |
| 505 | + generateFlag := flag.String("generate", "", "Generate implementation from api_def.go and write to `file`") |
| 506 | + compareFlag := flag.Bool("compare", false, "Compare api_def.go to the output of nvim --api-info") |
507 | 507 | dumpFlag := flag.Bool("dump", false, "Print nvim --api-info as JSON")
|
508 | 508 | flag.Parse()
|
509 | 509 |
|
|
0 commit comments