Martin Nordholts
68528983d7
Mark MappingTarget
as #[non_exhaustive]
for increased semver flexibility
...
This will allow us to add new enum variants in the future without breaking
semver compatibility. See
https://doc.rust-lang.org/reference/attributes/type_system.html#the-non_exhaustive-attribute
Since we already added an enum variant since v0.18.3, now is a good time to mark
it as `#[non_exhaustive]`.
2022-01-04 08:19:51 +01:00
Martin Nordholts
f89869b5b2
README.md: Add 'control characters' to Garbled output section
...
Fixes #1989
2022-01-03 22:16:08 +01:00
dependabot[bot]
d4744dbed5
Bump assets/syntaxes/02_Extra/MediaWiki from 843a483
to 81bf97c
...
Bumps [assets/syntaxes/02_Extra/MediaWiki](https://github.com/tosher/Mediawiker ) from `843a483` to `81bf97c`.
- [Release notes](https://github.com/tosher/Mediawiker/releases )
- [Commits](843a483e8b...81bf97cace
)
---
updated-dependencies:
- dependency-name: assets/syntaxes/02_Extra/MediaWiki
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-01-03 08:57:37 +01:00
dependabot[bot]
abbccc91ed
Bump assets/syntaxes/02_Extra/ssh-config from 201816b
to e1012e9
...
Bumps [assets/syntaxes/02_Extra/ssh-config](https://github.com/robballou/sublimetext-sshconfig ) from `201816b` to `e1012e9`.
- [Release notes](https://github.com/robballou/sublimetext-sshconfig/releases )
- [Commits](201816b609...e1012e9f13
)
---
updated-dependencies:
- dependency-name: assets/syntaxes/02_Extra/ssh-config
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-01-03 08:56:55 +01:00
dependabot[bot]
080c5f3de4
Bump serde_yaml from 0.8.21 to 0.8.23
...
Bumps [serde_yaml](https://github.com/dtolnay/serde-yaml ) from 0.8.21 to 0.8.23.
- [Release notes](https://github.com/dtolnay/serde-yaml/releases )
- [Commits](https://github.com/dtolnay/serde-yaml/compare/0.8.21...0.8.23 )
---
updated-dependencies:
- dependency-name: serde_yaml
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-01-01 12:17:55 +01:00
dependabot[bot]
079f6be88c
Bump nix from 0.23.0 to 0.23.1
...
Bumps [nix](https://github.com/nix-rust/nix ) from 0.23.0 to 0.23.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.0...v0.23.1 )
---
updated-dependencies:
- dependency-name: nix
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-01-01 12:17:36 +01:00
dependabot[bot]
c522ba78ed
Bump serde from 1.0.130 to 1.0.132
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.130 to 1.0.132.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.132 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-01-01 12:16:49 +01:00
dependabot[bot]
392bff6666
Bump once_cell from 1.8.0 to 1.9.0
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.8.0 to 1.9.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.8.0...v1.9.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>
2022-01-01 12:15:47 +01:00
Mahdi Dibaiee
6dc621ec18
Set minimum supported rust version to 1.51
2021-12-30 07:58:15 +01:00
dependabot[bot]
3358b075fb
Bump assets/syntaxes/02_Extra/TypeScript from a607ddf
to ba45efd
( #1834 )
...
* Bump assets/syntaxes/02_Extra/TypeScript from `a607ddf` to `ba45efd`
Bumps [assets/syntaxes/02_Extra/TypeScript](https://github.com/Microsoft/TypeScript-Sublime-Plugin ) from `a607ddf` to `ba45efd`.
- [Release notes](https://github.com/Microsoft/TypeScript-Sublime-Plugin/releases )
- [Commits](a607ddfec9...ba45efd058
)
---
updated-dependencies:
- dependency-name: assets/syntaxes/02_Extra/TypeScript
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
* Do machine-conversion from .tmLanguage to .sublime-syntax
The new .sublime-syntax files are pure "Tools" -> "Developer" -> "New Syntax
from ..." conversions from a licenced version of Sublime Text, Version 3.1.1,
Build 3176 with the .tmLanguage as the source files. No manual changes has been
made.
* Add CHANGELOG.md entry
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Martin Nordholts <enselic@gmail.com>
2021-12-12 20:07:50 +01:00
dependabot[bot]
a02713dc15
Bump assets/syntaxes/02_Extra/PowerShell from 4a0a076
to 742f0b5
( #1935 )
...
* Bump assets/syntaxes/02_Extra/PowerShell from `4a0a076` to `742f0b5`
Bumps [assets/syntaxes/02_Extra/PowerShell](https://github.com/PowerShell/EditorSyntax ) from `4a0a076` to `742f0b5`.
- [Release notes](https://github.com/PowerShell/EditorSyntax/releases )
- [Commits](4a0a076661...742f0b5d4b
)
---
updated-dependencies:
- dependency-name: assets/syntaxes/02_Extra/PowerShell
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
* Do machine-conversion from .tmLanguage to .sublime-syntax
The new .sublime-syntax file is a pure "Tools" -> "Developer" -> "New Syntax
from ..." conversion from a licenced version of Sublime Text, Version 3.1.1,
Build 3176 with the .tmLanguage as the source file. No manual changes has been
made.
* Update regression test and add CHANGELOG.md entry
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Martin Nordholts <enselic@gmail.com>
2021-12-12 19:41:04 +01:00
dependabot[bot]
ee1f5a9e89
Bump assets/syntaxes/02_Extra/SCSS_Sass from 63819a1
to d3d9404
( #1766 )
...
* Bump assets/syntaxes/02_Extra/SCSS_Sass from `63819a1` to `d3d9404`
Bumps [assets/syntaxes/02_Extra/SCSS_Sass](https://github.com/braver/SublimeSass ) from `63819a1` to `d3d9404`.
- [Release notes](https://github.com/braver/SublimeSass/releases )
- [Commits](63819a1ab6...d3d9404640
)
---
updated-dependencies:
- dependency-name: assets/syntaxes/02_Extra/SCSS_Sass
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
* Update regression test and add CHANGELOG.md entry
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Martin Nordholts <enselic@gmail.com>
2021-12-12 18:58:30 +01:00
Martin Nordholts
84a15f0b6e
assets/create.sh: Reverse patches even if bat cache
fails or aborts
2021-12-11 21:18:25 +01:00
Martin Nordholts
a3ea798246
Credit syntax definition and theme authors with new --acknowledgements
option ( #1971 )
...
The text that is printed is generated when building assets, by analyzing LICENSE
and NOTICE files that comes with syntaxes and themes.
We take this opportunity to also add a NOTICE file as defined by Apache License 2.0.
2021-12-11 14:00:45 +01:00
Ethan P
63ad53817d
Improved ANSI passthrough ( #1596 )
...
Improve handling of ANSI passthrough. Fix ANSI passthrough for --wrap=never. Add test for ANSI passthrough.
2021-12-08 16:06:42 +01:00
Martin Nordholts
6d0eb0749e
run-benchmarks: Benchmark both --wrap=character and --wrap=never
2021-12-08 15:45:46 +01:00
Martin Nordholts
36c1ea4599
run-benchmarks.sh: Don't benchmark startup time syntaxes twice
2021-12-08 12:02:11 +01:00
Martin Nordholts
e250da8aaa
Run cargo clippy --fix --all-targets --all-features
with Rust 1.57
...
Clippy in the newly released Rust 1.57 found some new lints. Conveniently, all
of them were fixable with `--fix`.
2021-12-08 08:45:04 +01:00
Martin Nordholts
7fceb4878f
Load themes lazily for improved startup time ( #1969 )
...
This is for #951 . Syntax lazy-loading will come later and have a much bigger
impact, but lazy-loading of themes does not have negligible impact.
2021-12-06 09:14:15 +01:00
Ersikan
29711c178a
Better syntax highlighting for Dart ( #1959 )
...
Remove unmaintained Dart syntax submodule. Add elMuso/Dartlight as submodule. Update Dart syntax highlighting. Add changes to changelog.
2021-12-06 08:40:43 +01:00
dependabot[bot]
8072d5a3e3
Bump clap from 2.33.3 to 2.34.0
...
Bumps [clap](https://github.com/clap-rs/clap ) from 2.33.3 to 2.34.0.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/commits )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-12-05 20:33:04 +01:00
D3ara1n
a5234105e5
Add a README-zh.md as the Chinese version of README.md ( #1970 )
...
Add README-zh.md to replace the outdated one. Also fix url ref.
2021-12-05 20:18:38 +01:00
Martin Nordholts
4236fa97cb
release-checklist.md: Update cargo outdated
section with link and arg
2021-12-03 09:17:32 +01:00
dependabot[bot]
f5e3d9f010
Bump predicates from 2.0.3 to 2.1.0
...
Bumps [predicates](https://github.com/assert-rs/predicates-rs ) from 2.0.3 to 2.1.0.
- [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.0.3...v2.1.0 )
---
updated-dependencies:
- dependency-name: predicates
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-12-01 06:06:54 +01:00
dependabot[bot]
6313e9ef2a
Bump assets/syntaxes/02_Extra/TOML from 0f14b7c
to 6bfcc3c
...
Bumps [assets/syntaxes/02_Extra/TOML](https://github.com/jasonwilliams/sublime_toml_highlighting ) from `0f14b7c` to `6bfcc3c`.
- [Release notes](https://github.com/jasonwilliams/sublime_toml_highlighting/releases )
- [Commits](0f14b7caf3...6bfcc3c236
)
---
updated-dependencies:
- dependency-name: assets/syntaxes/02_Extra/TOML
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-12-01 06:05:39 +01:00
Martin Nordholts
ce89fb2751
CICD: Add check for accidental inclusion of GPL:ed code
2021-11-28 21:04:37 +01:00
David Peter
3338699257
Remove the 'requirements.txt' syntax
...
This is needed because the syntax is only available under GPL v3.0,
which is not compatible with `bat`s license.
2021-11-28 16:28:14 +01:00
Martin Nordholts
747b15436a
run-benchmarks.sh: Add third 'Startup time' variant
...
Using Markdown for a startup test is useful since it has so many dependencies on
other syntaxes. So such a test makes sure that lazy-loading of syntaxes work.
It is however also useful to measure the startup time of bat when the time to
load a syntax is very small, and the measured startup time has mostly non-syntax
related causes. Such as:
* Parsing arguments
* Setting up syntax mapping
* Loading themes
This commit adds such a test. It uses the CpuInfo syntax which is very small.
Only 14 lines, compared to the 1581 lines that Markdown is (not including the
size of its included syntaxes).
This command can be used to get an approximation of the size of syntaxes, and
thus how expensive they are to load:
find -name *.sublime-syntax -print0 | xargs --null wc -l | sort -n -r
2021-11-27 10:39:17 +01:00
Martin Nordholts
206bf5b8d6
run-benchmarks.sh: Add new test 'Startup time with syntax highlighting'
2021-11-26 20:14:30 +01:00
Bojan Durdevic
9a2979df5f
Changelog update
2021-11-24 07:27:36 +01:00
Bojan Durdevic
b8e79a2160
Line range edge cases test
2021-11-24 07:27:36 +01:00
Bojan Durdevic
715b0d8bf5
Line range minus overflow prevention
2021-11-24 07:27:36 +01:00
Bojan Durdevic
0eb4aaac1e
Line range minus syntax clippy suggestions addressed
2021-11-24 07:27:36 +01:00
Bojan Durdevic
bc86c29185
Support for line range minus syntax
2021-11-24 07:27:36 +01:00
David Peter
d2175d6382
Add test for ANSI sequence loop-through
2021-11-23 08:14:49 +01:00
David Peter
b3aefd2d41
Add Python highlighting test
2021-11-23 08:14:49 +01:00
David Peter
f7eb55aa01
Rename jquery file
2021-11-23 08:14:49 +01:00
David Peter
5e63d67960
Remove jquery-3.3.1.min.js benchmark
2021-11-23 08:14:49 +01:00
David Peter
6fd78ea3f6
Clean benchmarking environment
2021-11-23 08:14:49 +01:00
David Peter
b12503a46a
Markdown (and JSON) reports
2021-11-23 08:14:49 +01:00
David Peter
ea2faf45e4
Simplify cargo-target-dir extraction
2021-11-23 08:14:49 +01:00
David Peter
1822c981da
Move comparison.sh benchmark script to documentation
2021-11-23 08:14:49 +01:00
Martin Nordholts
5519f9c716
Use once_cell instead of lazy_static
...
once_cell can do what lazy_static does and more, so replace lazy_static with
once_cell.
See https://docs.rs/once_cell/1.8.0/once_cell/#general-purpose-lazy-evaluation
2021-11-22 22:03:03 +01:00
Martin Nordholts
dd0925a946
Replace lazycell with once_cell
...
We started to use lazycell because syntect already used it. But syntect has
changed to use once_cell. So we should also do that to prepare for using the
upcoming version of syntect.
2021-11-22 22:03:03 +01:00
Martin Nordholts
d7671fa8e3
Remove the code related to minimal_syntaxes.bin
...
To get fast startup, syntect will instead start to lazy-load syntaxes. See
https://github.com/trishume/syntect/pull/393 and discussions in linked PRs.
2021-11-22 20:42:01 +01:00
Martin Nordholts
e79b07bf5e
HighlightingAssets::get_syntax_set(): Make private
...
Was forgotten in aefc8fd824
.
2021-11-22 20:42:01 +01:00
Shun Sakai
619cf6e6d6
Add MediaWiki syntax
2021-11-22 19:46:29 +01:00
Bojan Đurđević
d6ed5e6746
Support for ignored-suffix CLI arguments ( #1892 )
2021-11-19 17:05:23 +01:00
Isabella Basso
59d4cfb75c
README.md: Add 'Garbled output' to 'Troubleshooting' ( #1937 )
...
As per #234 , #403 , #1572 , #1823 and #1897 , this commit clarifies that
`bat` cannot properly handle escape sequences.
Signed-off-by: Isabella Basso <isabbasso@riseup.net>
2021-11-19 07:09:19 +01:00
dependabot[bot]
194e7bbcd1
Bump assets/syntaxes/02_Extra/LESS from a2eae04
to 836b47e
...
Bumps [assets/syntaxes/02_Extra/LESS](https://github.com/danro/LESS-sublime ) from `a2eae04` to `836b47e`.
- [Release notes](https://github.com/danro/LESS-sublime/releases )
- [Commits](a2eae0453e...836b47ec61
)
---
updated-dependencies:
- dependency-name: assets/syntaxes/02_Extra/LESS
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-11-03 06:26:21 +01:00