-
Notifications
You must be signed in to change notification settings - Fork 1
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
fix: expand patterns in file #3
Conversation
Made it a function. |
The |
Ah shit. Fixed it. |
Ok. Works now: tree-sitter/tree-sitter-ocaml#87 One peculiarity that is maybe not obvious for everyone, is that the |
Won't tree-sitter handle the exclusions? |
No, we're passing a file with paths to tree-sitter, not patterns. The behaviour of negated patterns depends on the order. They can only exclude files that were included before, not after. So if you want to combine I don't really see a use case for having both |
I'll figure something out tomorrow. |
Can you try v4? |
As I said before, I don't think it's a good idea to combine the patterns like that. With your new implementation, this will work as expected: files: |
examples/**/*.ext
files-list: files.txt
But this will not work files-list: files.txt
files: |
!examples/invalid1.ext
!examples/invalid2.ext
|
That seems like a limitation of |
That's not a limitation of But it does mean that the combination of |
patternsFile
was not being used.