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

feat:Added WL and R extensions rules. #42

Merged
merged 2 commits into from
Jul 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 4 additions & 2 deletions doc/App-Rak.rakudoc
Original file line number Diff line number Diff line change
Expand Up @@ -864,8 +864,8 @@ $ rak foo --extensions=,foo
=end code

Predefined groups are C<#raku>, C<#perl>, C<#cro>, C<#text>, C<#c>, C<#c++>,
C<#yaml>, C<#ruby>, C<#python>, C<#html>, C<#markdown>, C<#js>, C<#json>,
C<#jsonl>, C<#csv>, C<#config> and C<#text>.
C<#yaml>, C<#ruby>, C<#python>, C<#r>, C<#wl>, C<#html>, C<#markdown>, C<#js>, C<#json>,
C<#jsonl>, C<#csv>, C<#config>, and C<#text>.

The C<--list-known-extensions> argument can be used to see which predefined
groups of extensions are supported, and which extensions they cover.
Expand Down Expand Up @@ -1455,9 +1455,11 @@ $ rak --list-known-extensions
#markdown: md markdown
#perl: (none) pl pm t
#python: py ipynb
#r: (none) r R Rmd
#raku: (none) raku rakumod rakutest rakudoc nqp t pm6 pl6 pod6 t6
#ruby: rb
#text: (none) txt
#wl: (none) wl m wlt mt nb
#yaml: yaml yml

=end code
Expand Down
7 changes: 7 additions & 0 deletions lib/App/Rak.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,13 @@ my constant %exts =
'#python' => <py ipynb>,
'#raku' => ('', <raku rakumod rakutest rakudoc nqp t pm6 pl6 pod6 t6>
).flat.List,
# I am not sure should the binary formats be included or not:
# https://reference.wolfram.com/language/guide/WolframLanguageFileFormats.html
# Also #mathematica can be included as synonym of #wl .
'#wl' => ('', <wl wlt m mt nb>).flat.List,
# I am including .Rmd because of .ipynb inclusion above.
# More generally, the extensions of the project https://quarto.org should be included.
'#r' => ('', <r R Rmd>).flat.List,
'#ruby' => <rb>,
'#text' => ('', <txt>).flat.List,
'#yaml' => <yaml yml>,
Expand Down