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

Evaluate handlebars indent in mustache files #52

Merged
merged 1 commit into from
Jul 17, 2019

Conversation

AndrewRadev
Copy link
Contributor

It seems like mustache files don't get the right indentation. Opening the example.mustache file sets the filetype to html.mustache, as it should, but the indentexpr is still HtmlIndent().

This PR should fix the issue. It evaluates indent/handlebars.vim, so that the indentation is set to the one used for handlebars (the only one in the project).

Funnily enough, some handlebars files occasionally have HtmlIndent() as their indentexpr, but I haven't been able to figure out when it happens.

@AndrewRadev AndrewRadev mentioned this pull request Feb 12, 2017
@jsit jsit merged commit f25a4c3 into mustache:master Jul 17, 2019
@AndrewRadev AndrewRadev deleted the fix-mustache-indent branch July 17, 2019 18:17
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