Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

How can I add a custom grammar to the linter #124

Closed
zenopopovici opened this issue Jul 6, 2016 · 2 comments
Closed

How can I add a custom grammar to the linter #124

zenopopovici opened this issue Jul 6, 2016 · 2 comments

Comments

@zenopopovici
Copy link

Hello,

We've recently switched to nunjucks by mozilla and it's a pain without htmlhint.
Is there a way to add a custom grammar to the linter? If we change the file type to HTML linting works perfectly.

Thanks

@zenopopovici zenopopovici changed the title How can I add a custom grammar to the linte How can I add a custom grammar to the linter Jul 6, 2016
@zenopopovici
Copy link
Author

I see we could just update the GRAMMAR_SCOPES array with text.html.nunjucks.

Maybe we could have a preference pane for dealing with grammars?

@Arcanemagus
Copy link
Member

This is somewhat a duplicate of #82, but this is a solution to that that is easy enough to implement. As soon as the CI issues are sorted out I can throw a PR up that fixes this.

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

No branches or pull requests

2 participants