Skip to content

Commit c568e29

Browse files
authored
Merge pull request #35 from haya14busa/gofmt-generated-file
run gofmt on the generated file
2 parents 24e83e9 + f12cb65 commit c568e29

File tree

2 files changed

+138
-45
lines changed

2 files changed

+138
-45
lines changed

go/generate.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ function! s:generate()
1919
let c = s:GoCompiler.new(ImportTypedefs())
2020
let lines = c.compile(ast)
2121
call writefile(head + lines, gofile)
22+
call system(printf('gofmt -w -s %s', gofile))
2223
catch
2324
echoerr substitute(v:throwpoint, '\.\.\zs\d\+', '\=s:numtoname(submatch(0))', 'g') . "\n" . v:exception
2425
endtry

go/vimlparser.go

Lines changed: 137 additions & 45 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)