Martin Nordholts
7334ab4542
Bump to syntect 5.0.0 to e.g. start lazy-loading syntaxes ( #2181 )
...
* Bump to syntect 5.0.0 to e.g. start lazy-loading themes
Closes #915
Closes #951
Closes #1846
Closes #1854
* Typo fix formated -> formatted
* Update CHANGELOG.md
2 years ago
Martin Nordholts
719248f1c1
Simplify release-checklist.md by printing `-h`, `--help` and `man` in CI ( #2183 )
...
* Simplify release-checklist.md by printing `-h`, `--help` and `man` in CI
Note that we run `find . -name bat.1` before we run anything with
`--all-features`, because `--all-features` is considered a separate
target, and so we will get a different (but identical) `bat.1`. For
example, we might have these:
./target/debug/build/bat-218e9538b4996215/out/assets/manual/bat.1
./target/debug/build/bat-89d6f56802af023f/out/assets/manual/bat.1
By showing the man page earlier, there is only one `bat.1` to pick from.
* Use plain `man $(find . -name bat.1)`
2 years ago
dependabot[bot]
ef3e398b2b
Bump assets/syntaxes/02_Extra/Zig from `87ecbca` to `1a4a384` ( #2136 )
...
* Bump assets/syntaxes/02_Extra/Zig from `87ecbca` to `1a4a384`
Bumps [assets/syntaxes/02_Extra/Zig](https://github.com/ziglang/sublime-zig-language ) from `87ecbca` to `1a4a384`.
- [Release notes](https://github.com/ziglang/sublime-zig-language/releases )
- [Commits](87ecbcae6f...1a4a38445f
)
---
updated-dependencies:
- dependency-name: assets/syntaxes/02_Extra/Zig
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
* Update tests/syntax-tests/highlighted/Zig/example.zig and CHANGELOG.md
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Martin Nordholts <enselic@gmail.com>
2 years ago
Tejinder Singh
52bab63e18
Add `--relative` to `batdiff` in README.md ( #2172 )
2 years ago
Martin Nordholts
0851bbbb28
printer.rs: De-duplicate code to highlight long lines
...
We do this to only have one invocation of `highlighter.highlight(...)`
so we don't need to change to `highlighter.highlight_line(...)` in two
places in #2181 .
2 years ago
Ryan Zoeller
05ebf5ed26
Limit nix features
...
This removes memoffset as an indirect dependency, and should slightly decrease build times.
2 years ago
Isaac Horvath
adea895026
Add a --style=default option ( #2119 )
...
* Add a --style=default option
* Added --style=default test and CHANGELOG entry
* Format CHANGELOG.md options with quotes
Co-authored-by: Martin Nordholts <enselic@gmail.com>
* Update help text for '--style'
* Make --style=default the default option
* Update style descriptions: "basic" -> "recommended"
* Add integration test for --style=default as default
* Update clap long help for --style
2 years ago
dependabot[bot]
a6bd28a78b
Bump assets/syntaxes/02_Extra/Nginx from `15a1db1` to `65f5a63`
...
Bumps [assets/syntaxes/02_Extra/Nginx](https://github.com/brandonwamboldt/sublime-nginx ) from `15a1db1` to `65f5a63`.
- [Release notes](https://github.com/brandonwamboldt/sublime-nginx/releases )
- [Commits](15a1db1510...65f5a63c0d
)
---
updated-dependencies:
- dependency-name: assets/syntaxes/02_Extra/Nginx
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
Keith Hall
b5294f1cb2
Skip syntax highlighting for long lines ( #2165 )
...
* Skip highlighting for long lines
* Run cargo fmt, update changelog
2 years ago
Nathan Fisher
5114c0189d
Add support for BusyBox less as pager ( #2162 )
...
* Add support for BusyBox less as pager
* Run tests/syntax-tests/update.sh to update tests
* Address reviewer's concerns with pull request
* Revert all changes in `test` directory
* Minimize overall diff size
* Detect busybox from separate helper function
* Pass equivalent options to BusyBox from same code by changing from long to
short options
* Remove redundant `if` statement from previous commit
Add test for invalid utf-8
Add `parse_less_version_busybox` to test for invalid program
Add commenting around short options
2 years ago
dependabot[bot]
f2727d74d5
Bump nix from 0.23.1 to 0.24.1
...
Bumps [nix](https://github.com/nix-rust/nix ) from 0.23.1 to 0.24.1.
- [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.23.1...v0.24.1 )
---
updated-dependencies:
- dependency-name: nix
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
dependabot[bot]
735bee47eb
Bump flate2 from 1.0.22 to 1.0.23
...
Bumps [flate2](https://github.com/rust-lang/flate2-rs ) from 1.0.22 to 1.0.23.
- [Release notes](https://github.com/rust-lang/flate2-rs/releases )
- [Commits](https://github.com/rust-lang/flate2-rs/compare/1.0.22...1.0.23 )
---
updated-dependencies:
- dependency-name: flate2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
dependabot[bot]
a05ac53040
Bump thiserror from 1.0.30 to 1.0.31
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.30 to 1.0.31.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.30...1.0.31 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
Martin Nordholts
acb1231e40
Run `cargo clippy --fix --all-targets --all-features` with Rust 1.60
...
Clippy in the newly released Rust 1.60 found some new lints.
Conveniently, all of them were fixable with `--fix`.
By fixing these lints it becomes easier for us and others to see when
new lints are introduced.
2 years ago
cyqsimon
3ae05333b0
Add mapping for Unix mail spool ( #2156 )
2 years ago
dependabot[bot]
4291fd5c65
Bump assets/syntaxes/02_Extra/Fish from `cd95616` to `98316d4`
...
Bumps [assets/syntaxes/02_Extra/Fish](https://github.com/Phidica/sublime-fish ) from `cd95616` to `98316d4`.
- [Release notes](https://github.com/Phidica/sublime-fish/releases )
- [Commits](cd95616df5...98316d4332
)
---
updated-dependencies:
- dependency-name: assets/syntaxes/02_Extra/Fish
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
Víctor González Prieto
b0898900ce
Syntax: add cmd-help ( #2148 )
...
* Add cmd-help syntax
To highlight command --help messages.
* README.md: mention help message highlighting
* README.md: edit help message highlighting
2 years ago
Martin Nordholts
3239d3be2a
bug_report.md template: Explicitly ask for steps
2 years ago
Martin Nordholts
19033d7315
bug_report.md template: Mention some already reported bugs
2 years ago
Martin Nordholts
520081a92c
Print info about custom assets in --diagnostics
2 years ago
Martin Nordholts
47e0dc22d2
Lock regex crate at min 1.5.5 for CVE-2022-24713
...
Cargo.lock already specifies 1.5.5, but we should also do it in
Cargo.toml.
2 years ago
acheronfail
33a984992b
Update CHANGELOG.md
...
Co-authored-by: Martin Nordholts <enselic@gmail.com>
2 years ago
acheronfail
b1e67e215c
Allow configuring show_nonprintable from PrettyPrinter
2 years ago
dependabot[bot]
49317adcd3
Bump git2 from 0.14.1 to 0.14.2
...
Bumps [git2](https://github.com/rust-lang/git2-rs ) from 0.14.1 to 0.14.2.
- [Release notes](https://github.com/rust-lang/git2-rs/releases )
- [Commits](https://github.com/rust-lang/git2-rs/compare/git2-curl-0.14.1...0.14.2 )
---
updated-dependencies:
- dependency-name: git2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
dependabot[bot]
738304fe27
Bump once_cell from 1.9.0 to 1.10.0
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/matklad/once_cell/releases )
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.9.0...v1.10.0 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
dependabot[bot]
a191552031
Bump regex from 1.5.4 to 1.5.5
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.5.4 to 1.5.5.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.5.4...1.5.5 )
---
updated-dependencies:
- dependency-name: regex
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
dependabot[bot]
cec7229b6a
Bump semver from 1.0.6 to 1.0.7
...
Bumps [semver](https://github.com/dtolnay/semver ) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/dtolnay/semver/releases )
- [Commits](https://github.com/dtolnay/semver/compare/1.0.6...1.0.7 )
---
updated-dependencies:
- dependency-name: semver
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
dependabot[bot]
e735562098
Bump assets/syntaxes/02_Extra/Fish from `2c254cc` to `cd95616`
...
Bumps [assets/syntaxes/02_Extra/Fish](https://github.com/Phidica/sublime-fish ) from `2c254cc` to `cd95616`.
- [Release notes](https://github.com/Phidica/sublime-fish/releases )
- [Commits](2c254cc851...cd95616df5
)
---
updated-dependencies:
- dependency-name: assets/syntaxes/02_Extra/Fish
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
Keith Hall
1b030dc03b
Merge pull request #2127 from sharkdp/log_syntax_2123
...
Syntax: [Log] highlight escape characters in double quoted strings
3 years ago
Keith Hall
c0ec03e08a
Syntax: [Log] highlight escape characters in double quoted strings
3 years ago
Martin Nordholts
9ab378b5dc
Include contents of custom assets `metadata.yaml` in `--diagnostics`
3 years ago
dependabot[bot]
a153a78d7a
Bump shell-words from 1.0.0 to 1.1.0
...
Bumps [shell-words](https://github.com/tmiasko/shell-words ) from 1.0.0 to 1.1.0.
- [Release notes](https://github.com/tmiasko/shell-words/releases )
- [Commits](https://github.com/tmiasko/shell-words/compare/v1.0.0...v1.1.0 )
---
updated-dependencies:
- dependency-name: shell-words
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
3 years ago
dependabot[bot]
3ff738602e
Bump git2 from 0.13.25 to 0.14.1
...
Bumps [git2](https://github.com/rust-lang/git2-rs ) from 0.13.25 to 0.14.1.
- [Release notes](https://github.com/rust-lang/git2-rs/releases )
- [Commits](https://github.com/rust-lang/git2-rs/compare/0.13.25...git2-curl-0.14.1 )
---
updated-dependencies:
- dependency-name: git2
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
3 years ago
David Peter
282b70291f
Add CHANGELOG entry
3 years ago
David Peter
6330f36495
Updated test names
3 years ago
Patrick Hilhorst
e7df748b6d
correctly handle multiple tabs in one line
3 years ago
Patrick Hilhorst
67124f8513
add show_all_tabstops_long integration test
3 years ago
Patrick Hilhorst
16f940c2d3
add show_all_tabstops integration test
3 years ago
Patrick Hilhorst
da5921b4a9
Correctly render tab stops
3 years ago
TruncatedDinosour
cde239e809
Syntax: add clang-format ( #2076 )
...
Highlight .clang-format files as YAML
Co-authored-by: Ari Archer <truncateddinosour@gmail.com>
Co-authored-by: David Peter <mail@david-peter.de>
3 years ago
dependabot[bot]
97a98e037d
Bump serial_test from 0.5.1 to 0.6.0
...
Bumps [serial_test](https://github.com/palfrey/serial_test ) from 0.5.1 to 0.6.0.
- [Release notes](https://github.com/palfrey/serial_test/releases )
- [Commits](https://github.com/palfrey/serial_test/compare/v0.5.1...v0.6.0 )
---
updated-dependencies:
- dependency-name: serial_test
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
3 years ago
dependabot[bot]
3ffff8d2d8
Bump semver from 1.0.4 to 1.0.6
...
Bumps [semver](https://github.com/dtolnay/semver ) from 1.0.4 to 1.0.6.
- [Release notes](https://github.com/dtolnay/semver/releases )
- [Commits](https://github.com/dtolnay/semver/compare/1.0.4...1.0.6 )
---
updated-dependencies:
- dependency-name: semver
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
3 years ago
dependabot[bot]
95796a9cc0
Bump predicates from 2.1.0 to 2.1.1
...
Bumps [predicates](https://github.com/assert-rs/predicates-rs ) from 2.1.0 to 2.1.1.
- [Release notes](https://github.com/assert-rs/predicates-rs/releases )
- [Changelog](https://github.com/assert-rs/predicates-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/assert-rs/predicates-rs/compare/v2.1.0...v2.1.1 )
---
updated-dependencies:
- dependency-name: predicates
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
3 years ago
Martin Nordholts
7be9485c36
release-checklist: Remind where to push tags in forks
3 years ago
Martin Nordholts
448bfaf748
Prepare a "unreleased" section at the top of `CHANGELOG.md`
3 years ago
Martin Nordholts
0655ecf23d
Prepare for v0.20.0 release
...
Since we have added new enum variants to the `StyleComponent` which was
not previously marked `#[non_exhaustive]`, we must bump left-most
non-zero version number (see
[specifying-dependencies](https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#specifying-dependencies-from-cratesio )).
Otherwise client code that do exhaustive matches on `StyleComponent`
will stop compiling.
3 years ago
Martin Nordholts
671fc952bc
release-checklist.md: Add tip on how to review the man page
3 years ago
Martin Nordholts
3c057aa590
Add header-filename and header-filesize where missing
3 years ago
Martin Nordholts
8e8c350391
release-checklist.md: Remove '## Dependencies'
3 years ago
Martin Nordholts
1ee49b4d97
CONTRIBUTING.md: Encourage regression tests ( #2089 )
...
* CONTRIBUTING.md: Encourage regression tests
* Add colon before listing pros of regression tests
Co-authored-by: Keith Hall <keith-hall@users.noreply.github.com>
3 years ago