-
-
Notifications
You must be signed in to change notification settings - Fork 486
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
📎 Support {a,b}
glob pattern syntax for includes/excludes
#2986
Comments
{a.b}
glob pattern syntax for includes/excludes{a,b}
glob pattern syntax for includes/excludes
The pattern logic is an internal fork of Other than that, unfortunately I can't give you more information, we will have to figure it out ourselves. Regarding the recursion, I think it's safe to assume that we don't want to support nested patterns deeper than one level:
Even other libraries that offer Unix glob parsing and matching don't support nested patterns. If we set this as a goal, I think recursion isn't needed. Or we could use it, and it should not put too much memory pressure. |
FYI, there're some pre-discussions here: #2620 |
I think we can set this task for Biome 2.0 because this will require a breaking change. |
@Conaclos why was this PR merged if the milestone is set for Biome 2.0? |
does this still need to be open? |
Yes. The code for this is already implemented, but it's placed behind a flag. This issue should be closed when that flag is removed in biome 2.0. |
Summary
We want to support
{a,b}
pattern matching syntax for includes and excludes. It will allow us to more comprehensively support all the patterns that the Editorconfig spec defines (although not completely).Specifically, this syntax is to indicate that in the pattern
{a,b}
, there is a comma separated list of patterns that are applicable in that position.The text was updated successfully, but these errors were encountered: