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

Provide wildcard matching for syntax groups #174

Closed
meatbody opened this issue Aug 13, 2014 · 1 comment
Closed

Provide wildcard matching for syntax groups #174

meatbody opened this issue Aug 13, 2014 · 1 comment

Comments

@meatbody
Copy link

Currently linters are defined to match a specific syntax or list of syntaxes. If a file is considered to be a subtype of a given syntax, this causes the linters to no longer match the file. A concrete example: linter-pylint has its syntax set to 'source.python'. The package atom-django offers some useful snippets for Django-specific files, defining the syntax 'source.python.django'. However, setting a file to this syntax causes linter-pylint to no longer recognize the file.

From a quick inspection, it looks like this is controlled by initLinters in lib/linter-view.coffee, which looks to be doing exact matching on the syntaxes (as expected). It would be nice to provide a wildcard option (e.g. 'source.python.*') so linters don't have to anticipate every sub-syntax.

@davidtheclark
Copy link

Another nice possibility would be to be able to expose a setting so that the user can add syntaxes. (Is this already possible? I was trying to do it and couldn't figure out to make it work ...)

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

No branches or pull requests

5 participants