1
0
mirror of https://github.com/sharkdp/bat.git synced 2024-10-05 18:31:06 +01: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)
- 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)
## 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)
- 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)
- 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)
- 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)
@ -703,7 +703,7 @@ You can see the API documentation here: https://docs.rs/bat/
- `/proc/cpuinfo` and `/proc/meminfo`, see #593 (@sharkdp)
- Nim, see #542 (@sharkdp)
- Vue, see #826 (@chaaaaarlotte)
- CoffeScript, see #833 (@sharkdp)
- CoffeeScript, see #833 (@sharkdp)
## New themes

View File

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

View File

@ -96,13 +96,13 @@ pub struct Config<'a> {
#[cfg(feature = "lessopen")]
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,
/// The maximum number of consecutive empty lines to display
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,
}

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
///

View File

@ -1860,7 +1860,7 @@
tests/integration_tests.rs:789: bat_with_config()
tests/integration_tests.rs:799: 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:836: bat_with_config()
tests/integration_tests.rs:878: bat()

View File

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

View File

@ -13,12 +13,12 @@ gpl_excludes=(
# Contains a reference to GPL, but is not under GPL
":(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"
else
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
fi