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

Multiple string matching + wildcards failing #39

Closed
tillig opened this issue Oct 3, 2014 · 5 comments
Closed

Multiple string matching + wildcards failing #39

tillig opened this issue Oct 3, 2014 · 5 comments

Comments

@tillig
Copy link

tillig commented Oct 3, 2014

I have an editorconfig that tries to make use of the multiple-string matching to keep things simple, but also wildcards:

[*]
end_of_line = CRLF
indent_style = tab

[{*.html,*.cshtml}]
indent_style = space
indent_size = 4

This seems to work in the Visual Studio plugin but not in Sublime Text 3 (registered).

When I open a .html file and look in the Sublime console I see the dictionary of settings and it only includes the ones from the [*] match.

However, if I change the file to:

[*]
end_of_line = CRLF
indent_style = tab

[*.cshtml]
indent_style = space
indent_size = 4

[*.html]
indent_style = space
indent_size = 4

Then my settings are correctly applied in both Sublime and Visual Studio.

Am I misusing the multi-string match function?

@sindresorhus
Copy link
Owner

@treyhunner

@mrhyde
Copy link

mrhyde commented Oct 7, 2014

Have exactly the same issue here. 😭

@ArmorDarks
Copy link

Same issue too. Sublime build 3065

@treyhunner
Copy link
Contributor

This is a problem with the Python core library not supporting nesting of special glob characters(*, ?, etc.) in braces ({ and }).

The incomplete pull request for adding support is at editorconfig/editorconfig-core-py#5. I started adding support and got stuck and then busy.

@treyhunner
Copy link
Contributor

I just released v0.12.0 of the EditorConfig Python library which supports nested brace expansion and numeric ranges.

@sindresorhus if you upgrade the Python library it will fix this issue.

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

No branches or pull requests

5 participants