sindresorhus / editorconfig-sublime

Sublime Text plugin for EditorConfig - Helps developers maintain consistent coding styles between different editors
MIT License
1.77k stars 108 forks source link

Support delimited wildcards #26

Closed kevinpeno closed 10 years ago

kevinpeno commented 10 years ago

Editor config spec defines the ability to use delimited wildcards (e.g. {s1,s2,s3}). I've tried this using this plugin and it doesn't appear to be supported. I'm currently forced to include what I would delimit multiple times.

http://editorconfig.org/#file-format-details

sindresorhus commented 10 years ago

I'm using the latest version of editorconfig-core-py. @treyhunner ?

treyhunner commented 10 years ago

The core libraries all work fine for me, so I'm guessing there's a problem with the file or with the plugin installation.

@kevinpeno can you include an example .editorconfig and project that it doesn't work in? An example would help troubleshoot.

dannyfritz commented 10 years ago

Are wildcards allowed in delimited selectors? I'm having a problem with [{*.js,*.css,*.hbs}] only working on *.js files.

Edit: My problem was using * instead of **. Edit2: I guess I just didn't understand glob: [*.{js,css,hbs}]

sindresorhus commented 10 years ago

Closing as this is an editorconfig-core-py issue/question. @dannyfritz open a ticket there if you don't get an answer from @treyhunner

treyhunner commented 10 years ago

@dannyfritz yes, wildcard delimiters should be supported in {...} braces.

kevinpeno commented 10 years ago

Sorry for the delayed response. @treyhunner the example was similar to @dannyfritz final comment. Until I saw your last comment, I figured this was where my error was (globbing inside the {...} structure. A deeper example, I was trying to enforce a yml style format in handlebars (hbs) files that only exist for a hacked reason (assemble.io work around).

[{*.yml, /hacked-hbs/**.hbs}] # yml file format options