1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-03-15 15:18:45 +00:00

Fix typos

This commit is contained in:
Viktor Szépe 2024-06-25 22:07:56 +00:00
parent b265b20721
commit 8e708c9aa7
7 changed files with 13 additions and 13 deletions

View File

@ -123,7 +123,7 @@
- Various bash completion improvements, see #2310 (@scop) - Various bash completion improvements, see #2310 (@scop)
- Disable completion of `cache` subcommand, see #2399 (@cyqsimon) - Disable completion of `cache` subcommand, see #2399 (@cyqsimon)
- Signifigantly improve startup performance on macOS, see #2442 (@BlackHoleFox) - Significantly improve startup performance on macOS, see #2442 (@BlackHoleFox)
- Bump MSRV to 1.62, see #2496 (@Enselic) - Bump MSRV to 1.62, see #2496 (@Enselic)
## Syntaxes ## Syntaxes
@ -685,7 +685,7 @@ You can see the API documentation here: https://docs.rs/bat/
- Enabled LTO, making `bat` about 10% faster, see #719 (@bolinfest, @sharkdp) - Enabled LTO, making `bat` about 10% faster, see #719 (@bolinfest, @sharkdp)
- Suggestions non how to configure `bat` for MacOS dark mode, see README (@jerguslejko) - Suggestions non how to configure `bat` for MacOS dark mode, see README (@jerguslejko)
- Extended ["Integration with other tools"](https://github.com/sharkdp/bat#integration-with-other-tools) section (@eth-p) - Extended ["Integration with other tools"](https://github.com/sharkdp/bat#integration-with-other-tools) section (@eth-p)
- Updated [instrutions on how to use `bat` as a `man`-pager](https://github.com/sharkdp/bat#man), see #652, see #667 (@sharkdp) - Updated [instructions on how to use `bat` as a `man`-pager](https://github.com/sharkdp/bat#man), see #652, see #667 (@sharkdp)
- Add section concerning file encodings, see #688 and #568 (@sharkdp) - Add section concerning file encodings, see #688 and #568 (@sharkdp)
- Updated sort order of command-line options in `--help` text and manpage, see #653 and #700 (@hrlmartins) - Updated sort order of command-line options in `--help` text and manpage, see #653 and #700 (@hrlmartins)
- Updates to the man page syntax, see #718 (@sharkdp) - Updates to the man page syntax, see #718 (@sharkdp)
@ -703,7 +703,7 @@ You can see the API documentation here: https://docs.rs/bat/
- `/proc/cpuinfo` and `/proc/meminfo`, see #593 (@sharkdp) - `/proc/cpuinfo` and `/proc/meminfo`, see #593 (@sharkdp)
- Nim, see #542 (@sharkdp) - Nim, see #542 (@sharkdp)
- Vue, see #826 (@chaaaaarlotte) - Vue, see #826 (@chaaaaarlotte)
- CoffeScript, see #833 (@sharkdp) - CoffeeScript, see #833 (@sharkdp)
## New themes ## New themes

View File

@ -1434,7 +1434,7 @@ index 50e5dad3..44a9795d 100644
+ break: (?={{break_char}}|$) + break: (?={{break_char}}|$)
+ break_char: '[\s()"'',:;|]' + break_char: '[\s()"'',:;|]'
+ +
+ # caracters + # characters
+ standard_char: '[0-9A-Za-z!"#$%&''()*+,\-./:;<=>?@\\\[\]^_`{|}~]' + standard_char: '[0-9A-Za-z!"#$%&''()*+,\-./:;<=>?@\\\[\]^_`{|}~]'
+ char_attributes: (?:(?:[[:alnum:]_]+-)+\\?) + char_attributes: (?:(?:[[:alnum:]_]+-)+\\?)
+ +

View File

@ -96,13 +96,13 @@ pub struct Config<'a> {
#[cfg(feature = "lessopen")] #[cfg(feature = "lessopen")]
pub use_lessopen: bool, pub use_lessopen: bool,
// Weather or not to set terminal title when using a pager // Whether or not to set terminal title when using a pager
pub set_terminal_title: bool, pub set_terminal_title: bool,
/// The maximum number of consecutive empty lines to display /// The maximum number of consecutive empty lines to display
pub squeeze_lines: Option<usize>, pub squeeze_lines: Option<usize>,
// Weather or not to set terminal title when using a pager // Whether or not to set terminal title when using a pager
pub strip_ansi: StripAnsiMode, pub strip_ansi: StripAnsiMode,
} }

View File

@ -346,7 +346,7 @@ impl EscapeSequenceOffsets {
} }
} }
/// An iterator over the offests of ANSI/VT escape sequences within a string. /// An iterator over the offsets of ANSI/VT escape sequences within a string.
/// ///
/// ## Example /// ## Example
/// ///

View File

@ -1860,7 +1860,7 @@
tests/integration_tests.rs:789: bat_with_config() tests/integration_tests.rs:789: bat_with_config()
tests/integration_tests.rs:799: bat_with_config() tests/integration_tests.rs:799: bat_with_config()
tests/integration_tests.rs:810: bat_with_config() tests/integration_tests.rs:810: bat_with_config()
tests/integration_tests.rs:820: bat_with_config().arg("cach").assert().failure(); tests/integration_tests.rs:820: bat_with_config().arg("cache").assert().failure();
tests/integration_tests.rs:827: bat() tests/integration_tests.rs:827: bat()
tests/integration_tests.rs:836: bat_with_config() tests/integration_tests.rs:836: bat_with_config()
tests/integration_tests.rs:878: bat() tests/integration_tests.rs:878: bat()

View File

@ -1321,7 +1321,7 @@ fn can_print_file_starting_with_cache() {
#[test] #[test]
fn does_not_print_unwanted_file_named_cache() { fn does_not_print_unwanted_file_named_cache() {
bat_with_config().arg("cach").assert().failure(); bat_with_config().arg("cache").assert().failure();
} }
#[test] #[test]
@ -2647,7 +2647,7 @@ fn lessopen_validity() {
// Syntax highlighting should be the same regardless of // Syntax highlighting should be the same regardless of
// --map-syntax' case or file extension's case // --map-syntax' case or file extension's case
#[test] #[test]
fn highlighting_independant_from_map_syntax_case() { fn highlighting_independent_from_map_syntax_case() {
let expected = bat() let expected = bat()
.arg("-f") .arg("-f")
.arg("--map-syntax=*.config:JSON") .arg("--map-syntax=*.config:JSON")

View File

@ -13,12 +13,12 @@ gpl_excludes=(
# Contains a reference to GPL, but is not under GPL # Contains a reference to GPL, but is not under GPL
":(exclude)tests/syntax-tests/source/Java Server Page (JSP)/LICENSE.md" ":(exclude)tests/syntax-tests/source/Java Server Page (JSP)/LICENSE.md"
) )
gpl_occurances=$(git grep --recurse-submodules "${gpl_term}" -- "${gpl_excludes[@]}" || true) gpl_occurrences=$(git grep --recurse-submodules "${gpl_term}" -- "${gpl_excludes[@]}" || true)
if [ -z "${gpl_occurances}" ]; then if [ -z "${gpl_occurrences}" ]; then
echo "PASS: No files under GPL were found" echo "PASS: No files under GPL were found"
else else
echo "FAIL: GPL:ed code is not compatible with bat, but occurrences of '${gpl_term}' were found:" echo "FAIL: GPL:ed code is not compatible with bat, but occurrences of '${gpl_term}' were found:"
echo "${gpl_occurances}" echo "${gpl_occurrences}"
exit 1 exit 1
fi fi