-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Recurse into directories using BurntSushi's walkdir crate. This means the following is now possible: unicop src/ Also set the default to '.' (i.e. recursively checking the current directory). I've read in the documentation that tree-sitter actually has a language-detection framework that grammars can plug into, but unfortunately, it doesn't seem to be exposed in the library. It might still be a good idea to adopt it, as it will make it easier to add new languages. This commit contains a stripped-down version that only look at file extensions (tree-sitter's language detection also uses regexps, but none of the current grammars define any.)
- Loading branch information
1 parent
fdf15aa
commit fb9b3b6
Showing
4 changed files
with
50 additions
and
13 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters