Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow trimming around comments in gotexttmpl syntax. #1235

Merged
merged 1 commit into from
Mar 28, 2017

Conversation

thsnr
Copy link
Contributor

@thsnr thsnr commented Mar 10, 2017

In text/template starting from Go 1.6, whitespace around actions can be trimmed with "- " and " -" to result in cleaner output (https://golang.org/pkg/text/template/#hdr-Text_and_spaces). Update syntax/gotexttmpl.vim to allow using this construction around comments.

@fatih fatih merged commit 5d684f6 into fatih:master Mar 28, 2017
@fatih
Copy link
Owner

fatih commented Mar 28, 2017

Thanks @thsnr 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants