dependabot[bot]
18e999c92a
Bump thiserror from 1.0.29 to 1.0.30
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.29 to 1.0.30.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.29...1.0.30 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-11-01 05:53:02 +01:00
rhysd
d5f737f402
show skip message when asset cache is not found
2021-10-26 21:34:10 +02:00
cbolgiano
7fe4fdf33d
Introduce MapExtensionToUnknown MappingTarget ( #1889 )
...
Co-authored-by: Martin Nordholts <enselic@gmail.com>
2021-10-25 17:59:12 +02:00
David Peter
0b63ad5e8b
create_highlighted_versions: fix misleading/wrong error message
2021-10-24 12:24:46 +02:00
Martin Nordholts
4081ace4b9
Include git hash in bat -V
and bat --version
output if present
...
I had to use a `lazy_static` due to that the clap API that only accepts a
reference to a version string. And, in our code, only a 'static reference to a
version string.
Code could probably be refactored to accept a "normal" reference, but that would
be a major undertaking.
2021-10-24 11:36:55 +02:00
Martin Nordholts
dde770aa21
Add bat panic regression test for Svelte files with embedded LiveScript
...
Without a LiveScript syntax present, the Svelte test will now fail with a panic.
2021-10-23 13:35:32 +02:00
Martin Nordholts
6eb2cc9cac
Add LiveScript syntax
...
The file `LiveScript.sublime-syntax` is a pure export from a licenced version
of Sublime Text, Version 3.1.1, Build 3176 with
assets/syntaxes/02_Extra/LiveScript/Syntaxes/LiveScript.tmLanguage as the source
file.
2021-10-23 13:35:32 +02:00
rhysd
f28d9db3d0
use io::Empty instead of crafted dummy stdin struct
2021-10-23 13:04:24 +02:00
rhysd
deb80af449
remove unused lifetime parameter
2021-10-23 13:04:24 +02:00
rhysd
dc0acbbb90
inline a closure which is called only once
2021-10-23 13:04:24 +02:00
rhysd
92ba42a602
do not take stdin lock when stdin is not used
2021-10-23 13:04:24 +02:00
Ashutosh Sajan
d5e61d2316
update ubuntu installation command ( #1911 )
2021-10-23 13:00:43 +02:00
rhysd
ed3246c423
Make grep-cli optional dependency
2021-10-17 21:22:57 +02:00
Diva M
2339d78bf4
update snapshot tests
2021-10-17 21:21:23 +02:00
Diva M
3a3cd0acba
changelog
2021-10-17 21:21:23 +02:00
Diva M
ce4ddc0911
use saturating substraction to calculate Line ranges
2021-10-17 21:21:23 +02:00
i-ky
aed4ea144f
Sync README header across translations ( #1905 )
...
* Fix links in Russian translation.
* Simplify links in Korean translation.
* Fix build status badge in Japanese and Russian translations.
* Add link from Japanese to Russian translation.
* Add line break between "topics" row and "translations" row.
* Remove "translations" from translations row in Japanese and Russian.
* Add consistent spacing between translation links.
* Add backreferences to English README.
* Remove self references.
* Split translations row across multiple lines for easier maintenance.
Co-authored-by: David Peter <sharkdp@users.noreply.github.com>
2021-10-17 21:15:23 +02:00
Raf Czlonka
eea061c1d9
Add install instructions on OpenBSD
2021-10-17 21:11:07 +02:00
Ikko Ashimine
10288e309e
Add Русский link
2021-10-17 20:44:15 +02:00
mac.mini
ebdb00d4fc
add security vulnerabilities in ko doc
2021-10-16 21:05:02 +02:00
NotWearingPants
6fc7ebf37a
Add missing style values in fish & zsh completions ( #1890 )
2021-10-11 19:13:16 +02:00
USER
8f6a0cd9e2
update Korean readme
2021-10-10 10:24:04 +02:00
Martin Nordholts
994c21a5e1
syntax-tests: Make CpuInfo test actually work ( #1887 )
...
* syntax-tests: Make CpuInfo test actually work
File extension matching is case-sensitive, so extension needs to be .cpuinfo for
the syntax to actually be used.
* Also fix MemInfo
2021-10-06 06:50:11 +02:00
Martin Nordholts
554374667e
Deny unsafe code in lib and bin
...
The deny also applies recursively to submodules.
2021-10-04 08:08:33 +02:00
Martin Nordholts
043f3381b0
CICD: Make the 'cargo fmt' check a toplevel job ( #1883 )
...
Mainly to make it easier to see what went wrong when it fails.
If this ever gets of out sync with a particular Rust version, we can most likely
save the situation by introducing a `rustfmt.toml` file.
2021-10-04 08:08:14 +02:00
Georgy Komarov
d04a83de7b
Add Racket syntax
2021-10-03 19:17:26 +02:00
invakid404
b622a4d890
chore: add funtoo linux instructions
2021-10-03 09:15:36 +02:00
Roneo.Org
b551d28a2f
List available Ubuntu packages more precisely.
...
Ref: https://github.com/sharkdp/bat/pull/1865#issuecomment-931709001
2021-10-03 09:12:18 +02:00
Roneo.Org
e6caa04209
Minor rephrasing
2021-10-03 09:12:18 +02:00
Roneo.Org
adadedeab1
Update the doc for Ubuntu and Debian
2021-10-03 09:12:18 +02:00
dependabot[bot]
a6cf5235aa
Bump assert_cmd from 2.0.0 to 2.0.1
...
Bumps [assert_cmd](https://github.com/assert-rs/assert_cmd ) from 2.0.0 to 2.0.1.
- [Release notes](https://github.com/assert-rs/assert_cmd/releases )
- [Changelog](https://github.com/assert-rs/assert_cmd/blob/master/CHANGELOG.md )
- [Commits](https://github.com/assert-rs/assert_cmd/compare/v2.0.0...v2.0.1 )
---
updated-dependencies:
- dependency-name: assert_cmd
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-10-03 08:13:06 +02:00
dependabot[bot]
1477338106
Bump nix from 0.22.1 to 0.23.0
...
Bumps [nix](https://github.com/nix-rust/nix ) from 0.22.1 to 0.23.0.
- [Release notes](https://github.com/nix-rust/nix/releases )
- [Changelog](https://github.com/nix-rust/nix/blob/master/CHANGELOG.md )
- [Commits](https://github.com/nix-rust/nix/compare/v0.22.1...v0.23.0 )
---
updated-dependencies:
- dependency-name: nix
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-10-03 08:10:26 +02:00
Martin Nordholts
418fce5683
Bump MSRV to 1.46
...
See #1874 and #1872 .
2021-10-03 07:51:37 +02:00
dependabot[bot]
7a15ba3796
Bump assets/syntaxes/02_Extra/Julia from 48639e1
to 1e55f32
...
Bumps [assets/syntaxes/02_Extra/Julia](https://github.com/JuliaEditorSupport/Julia-sublime ) from `48639e1` to `1e55f32`.
- [Release notes](https://github.com/JuliaEditorSupport/Julia-sublime/releases )
- [Commits](48639e1dbf...1e55f3211b
)
---
updated-dependencies:
- dependency-name: assets/syntaxes/02_Extra/Julia
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-10-02 13:25:57 +02:00
dependabot[bot]
0f002a5b06
Bump serde_yaml from 0.8.20 to 0.8.21
...
Bumps [serde_yaml](https://github.com/dtolnay/serde-yaml ) from 0.8.20 to 0.8.21.
- [Release notes](https://github.com/dtolnay/serde-yaml/releases )
- [Commits](https://github.com/dtolnay/serde-yaml/compare/0.8.20...0.8.21 )
---
updated-dependencies:
- dependency-name: serde_yaml
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-10-02 13:20:53 +02:00
dependabot[bot]
5344a32d34
Bump unicode-width from 0.1.8 to 0.1.9
...
Bumps [unicode-width](https://github.com/unicode-rs/unicode-width ) from 0.1.8 to 0.1.9.
- [Release notes](https://github.com/unicode-rs/unicode-width/releases )
- [Commits](https://github.com/unicode-rs/unicode-width/compare/v0.1.8...v0.1.9 )
---
updated-dependencies:
- dependency-name: unicode-width
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-10-02 12:18:05 +02:00
dependabot[bot]
c9645693a4
Bump flate2 from 1.0.20 to 1.0.22
...
Bumps [flate2](https://github.com/rust-lang/flate2-rs ) from 1.0.20 to 1.0.22.
- [Release notes](https://github.com/rust-lang/flate2-rs/releases )
- [Commits](https://github.com/rust-lang/flate2-rs/compare/1.0.20...1.0.22 )
---
updated-dependencies:
- dependency-name: flate2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-10-02 11:17:00 +02:00
dependabot[bot]
f607263bdc
Bump thiserror from 1.0.28 to 1.0.29
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.28 to 1.0.29.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.28...1.0.29 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-10-02 11:16:08 +02:00
dependabot[bot]
f309d2fbd2
Bump serde from 1.0.127 to 1.0.130
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.127 to 1.0.130.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.130 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-10-02 11:15:50 +02:00
Kuan-Yi Li
47283f226a
Add bash completion to deb package
...
From the discussion in #1734 , instead of using `env.PROJECT_NAME`,
`steps.strip.outputs.BIN_NAME` could potentially be a better choice as
the filename needs to match the called executable for bash-completion's
on demand loading to work. This `BIN_NAME` needs to stay in sync with
`env.PROJECT_EXECUTABLE` which is replaced in the template, but not
available for the deb build at this stage.
Follow the same route as for the fish/zsh completions for now for the
sake of consistency.
Closes #1733
2021-10-02 11:13:19 +02:00
Martin Nordholts
aefc8fd824
src/printer.rs: Simplify Plain Text fallback code
...
By forwarding the task to find the `Plain Text` syntax to `assets`. Not only does
the code become simpler; we also get rid of a call to `self.get_syntax_set()`
which is beneficial to the long term goal of replacing `syntaxes.bin` with
`minimal_syntaxes.bin`.
Note that the use of `.expect()` is not a regression in error handling. It was
previously hidden in `.find_syntax_plain_text()`.
2021-09-29 17:54:45 +02:00
Martin Nordholts
405a80f3ee
HighlightingAssets: Turn get_syntax_for_path() into public API
2021-09-28 07:26:20 +02:00
Martin Nordholts
ad98d35a48
HighlightingAssets: Implement get_syntax_for_file_name() with get_syntax_for_path()
...
We can do this since the file_name() of a file_name is file_name.
2021-09-28 07:26:20 +02:00
Martin Nordholts
b69ab219d7
HighlightingAssets: Extract get_syntax_for_path() method
...
To make the code easier to refactor further.
2021-09-28 07:26:20 +02:00
Martin Nordholts
dc8225f682
src/assets.rs: Extract helper method OpenedInput::path()
2021-09-27 08:00:58 +02:00
Martin Nordholts
9d9b266f54
build_assets.rs: Enable dump of syntax dependencies to Graphviz dot file
2021-09-24 20:07:55 +02:00
Martin Nordholts
b9d01c1a61
build_assets.rs: Ignore explicit contexts when tracking dependencies
2021-09-24 20:07:55 +02:00
Martin Nordholts
122cae7902
build_assets.rs: Sort first to make dependencies.dedup() actually useful
2021-09-24 20:07:55 +02:00
David Peter
44a332c1c4
Parallelize syntax regression tests
...
The syntax highlighting regression tests can be trivially parallelized.
On my notebook (8 core), this results in a 3.9x speedup.
2021-09-22 22:18:01 +02:00
Martin Nordholts
5143f3ad43
build_assets.rs: Add code to track dependents of each syntax
...
This information is useful when you want to build several SyntaxSets, but
without having to duplicate SyntaxDefinitions. For example:
"Rust" has no dependencies. But "Markdown" depends on "Rust". With the data
structures this code adds, we know that "Rust" is a dependent syntax for
"Markdown", and can construct a SyntaxSet that takes that into account.
Note that code has a temporary environment flag to ignore any information about
dependents when constructing SyntaxSets. Code that makes use of the new data
structure will be added later.
2021-09-22 09:14:19 +02:00