-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
51 changed files
with
2,085 additions
and
65 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Contributing | ||
|
||
Thank you for considering to contribute to `bat`! | ||
|
||
|
||
|
||
## Add an entry to the changelog | ||
|
||
If your contribution changes the behavior of `bat` (as opposed to a typo-fix | ||
in the documentation), please update the [`CHANGELOG.md`](CHANGELOG.md) file | ||
and describe your changes. This makes the release proess much easier and | ||
therefore helps to get your changes into a new `bat` release faster. | ||
|
||
The top of the `CHANGELOG` contains a *"unreleased"* section with a few | ||
subsections (Features, Bugfixes, …). Please add your entry to the subsection | ||
that best describes your change | ||
|
||
Entries follow this format: | ||
``` | ||
- Short description of what has been changed, see #123 (@user) | ||
``` | ||
Here, `#123` is the number of the original issue and/or your pull request. | ||
Please replace `@user` by your GitHub username. | ||
|
||
|
||
## Development | ||
|
||
Please check out the [Development](https://github.com/sharkdp/bat#development) | ||
section in the README. | ||
|
||
|
||
## Adding a new feature | ||
|
||
Please consider opening a | ||
[feature request ticket](https://github.com/sharkdp/bat/issues/new?assignees=&labels=feature-request&template=feature_request.md) | ||
first in order to give us a chance to discuss the feature first. | ||
|
||
|
||
## Adding new syntaxes/languages or themes | ||
|
||
Before you make a pull request that adds a new syntax or theme, please read | ||
the [Customization](https://github.com/sharkdp/bat#customization) section | ||
in the README first. | ||
|
||
If you really think that a particular syntax or theme should be added for all | ||
users, please read the corresponding | ||
[documentation](https://github.com/sharkdp/bat/blob/master/doc/assets.md) | ||
first. |
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
Binary file not shown.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
[38;2;117;113;94m//[0m[38;2;117;113;94m selective import[0m | ||
[38;2;249;38;114mimport[0m[38;2;248;248;242m [0m[38;2;255;255;255mstd[0m[38;2;248;248;242m.[0m[38;2;255;255;255mstdio[0m[38;2;248;248;242m [0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mwriteln[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;255;255;255mwritefln[0m[38;2;248;248;242m;[0m | ||
[38;2;117;113;94m//[0m[38;2;117;113;94m non-selective import[0m | ||
[38;2;249;38;114mimport[0m[38;2;248;248;242m [0m[38;2;255;255;255mstd[0m[38;2;248;248;242m.[0m[38;2;255;255;255malgorithm[0m[38;2;248;248;242m;[0m | ||
|
||
[38;2;117;113;94m/*[0m[38;2;117;113;94m a multiline comment[0m | ||
[38;2;117;113;94m*[0m | ||
[38;2;117;113;94m*[0m[38;2;117;113;94m this function is safe because it doesn't use pointer arithmetic[0m | ||
[38;2;117;113;94m*/[0m | ||
[3;38;2;102;217;239mint[0m[38;2;248;248;242m [0m[38;2;166;226;46mthe_ultimate_answer[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[38;2;249;38;114m@[0m[38;2;249;38;114msafe[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||
[38;2;248;248;242m [0m[38;2;117;113;94m//[0m[38;2;117;113;94m assert1on[0m | ||
[38;2;248;248;242m [0m[38;2;249;38;114massert[0m[38;2;248;248;242m([0m[38;2;190;132;255m1[0m[38;2;248;248;242m [0m[38;2;249;38;114m!=[0m[38;2;248;248;242m [0m[38;2;190;132;255m2[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m | ||
[38;2;248;248;242m [0m[38;2;117;113;94m//[0m[38;2;117;113;94m now we can safely return our answer [0m | ||
[38;2;248;248;242m [0m[38;2;249;38;114mreturn[0m[38;2;248;248;242m [0m[38;2;190;132;255m42[0m[38;2;248;248;242m;[0m | ||
[38;2;248;248;242m}[0m | ||
|
||
[3;38;2;102;217;239mvoid[0m[38;2;248;248;242m [0m[38;2;166;226;46mmain[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m | ||
[38;2;248;248;242m{[0m | ||
[38;2;248;248;242m [0m[38;2;117;113;94m//[0m[38;2;117;113;94m function call with string literal[0m | ||
[38;2;248;248;242m [0m[38;2;248;248;242mwriteln[0m[38;2;248;248;242m([0m[38;2;230;219;116m"[0m[38;2;230;219;116mHello World![0m[38;2;230;219;116m"[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m | ||
|
||
[38;2;248;248;242m [0m[38;2;117;113;94m//[0m[38;2;117;113;94m an int array declaration[0m | ||
[38;2;248;248;242m [0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m[[0m[38;2;248;248;242m][0m[38;2;248;248;242m [0m[38;2;255;255;255marr1[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;248;248;242m[[0m[38;2;190;132;255m1[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255m2[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255m3[0m[38;2;248;248;242m][0m[38;2;248;248;242m;[0m | ||
[38;2;248;248;242m [0m[38;2;117;113;94m//[0m[38;2;117;113;94m an immutable double[0m | ||
[38;2;248;248;242m [0m[38;2;249;38;114mimmutable[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mdouble[0m[38;2;248;248;242m [0m[38;2;255;255;255mpi[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255m3[0m[38;2;190;132;255m.[0m[38;2;190;132;255m14[0m[38;2;248;248;242m;[0m | ||
[38;2;248;248;242m [0m[38;2;117;113;94m//[0m[38;2;117;113;94m a mutable double[0m | ||
[38;2;248;248;242m [0m[3;38;2;102;217;239mdouble[0m[38;2;248;248;242m [0m[38;2;255;255;255md1[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;255;255;255mpi[0m[38;2;248;248;242m;[0m | ||
[38;2;248;248;242m [0m[38;2;117;113;94m//[0m[38;2;117;113;94m a pointer[0m | ||
[38;2;248;248;242m [0m[3;38;2;102;217;239mdouble[0m[38;2;249;38;114m*[0m[38;2;248;248;242m [0m[38;2;255;255;255mdp1[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;249;38;114m&[0m[38;2;255;255;255md1[0m[38;2;248;248;242m;[0m | ||
[38;2;248;248;242m [0m[38;2;117;113;94m//[0m[38;2;117;113;94m another pointer to the same thingy[0m | ||
[38;2;248;248;242m [0m[38;2;249;38;114mauto[0m[38;2;248;248;242m [0m[38;2;255;255;255ma1[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;249;38;114m&[0m[38;2;255;255;255md1[0m[38;2;248;248;242m;[0m | ||
[38;2;248;248;242m [0m[38;2;117;113;94m//[0m[38;2;117;113;94m a constant bool[0m | ||
[38;2;248;248;242m [0m[38;2;249;38;114mconst[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mbool[0m[38;2;248;248;242m [0m[38;2;255;255;255mb1[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255mtrue[0m[38;2;248;248;242m;[0m | ||
[38;2;248;248;242m [0m[38;2;249;38;114mif[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;255;255;255mb1[0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||
[38;2;248;248;242m [0m[38;2;117;113;94m//[0m[38;2;117;113;94m another function call [0m | ||
[38;2;248;248;242m [0m[38;2;248;248;242mwritefln[0m[38;2;248;248;242m([0m[38;2;230;219;116m"[0m[38;2;230;219;116m%s[0m[38;2;190;132;255m\n[0m[38;2;230;219;116m%s[0m[38;2;190;132;255m\n[0m[38;2;230;219;116m%s[0m[38;2;190;132;255m\n[0m[38;2;230;219;116m"[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;255;255;255marr1[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;255;255;255md1[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;248;248;242mthe_ultimate_answer[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m | ||
[38;2;248;248;242m [0m[38;2;248;248;242m}[0m | ||
[38;2;248;248;242m [0m[38;2;249;38;114melse[0m[38;2;248;248;242m [0m[38;2;249;38;114mif[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;249;38;114m![0m[38;2;255;255;255mb1[0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||
[38;2;248;248;242m [0m[38;2;248;248;242mwriteln[0m[38;2;248;248;242m([0m[38;2;230;219;116m"[0m[38;2;230;219;116mthis seems wrong[0m[38;2;230;219;116m"[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m | ||
[38;2;248;248;242m [0m[38;2;248;248;242m}[0m | ||
[38;2;248;248;242m [0m[38;2;249;38;114melse[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||
[38;2;248;248;242m [0m[38;2;248;248;242mwriteln[0m[38;2;248;248;242m([0m[38;2;230;219;116m"[0m[38;2;230;219;116mI'm giving up, this is too crazy for me[0m[38;2;230;219;116m"[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m | ||
[38;2;248;248;242m [0m[38;2;248;248;242m}[0m | ||
[38;2;248;248;242m}[0m |
Oops, something went wrong.