1
0
mirror of https://github.com/sharkdp/bat synced 2026-08-03 18:51:44 +00:00

Compare commits

...

7 Commits

Author SHA1 Message Date
sharkdp 9e65ecd03e Updates for v0.15.4 2020-05-27 10:14:32 +02:00
sharkdp 9cb43ef64d Update tests 2020-05-27 10:09:57 +02:00
sharkdp bb18ece8a4 Remove 'Haskell (improved) syntax' 2020-05-27 10:09:57 +02:00
sharkdp 2ab6474761 Add unit test to make sure we are not missing any themes 2020-05-27 09:50:22 +02:00
David Peter fe20328ab7 Revert "Bump assets/themes/Solarized from 87e0109 to 3707f68"
This reverts commit a265242e6e.
2020-05-27 09:50:22 +02:00
sharkdp d84ac09abd Update .gitattributes 2020-05-26 12:14:27 +02:00
sharkdp 69e6cae0a7 Fix CHANGELOG 2020-05-26 08:38:12 +02:00
17 changed files with 53 additions and 16 deletions
-3
View File
@@ -70,9 +70,6 @@
[submodule "assets/syntaxes/JavaScript (Babel)"] [submodule "assets/syntaxes/JavaScript (Babel)"]
path = assets/syntaxes/02_Extra/JavaScript (Babel) path = assets/syntaxes/02_Extra/JavaScript (Babel)
url = https://github.com/babel/babel-sublime url = https://github.com/babel/babel-sublime
[submodule "assets/syntaxes/Cabal"]
path = assets/syntaxes/02_Extra/Cabal
url = https://github.com/SublimeHaskell/SublimeHaskell
[submodule "assets/syntaxes/Dart"] [submodule "assets/syntaxes/Dart"]
path = assets/syntaxes/02_Extra/Dart path = assets/syntaxes/02_Extra/Dart
url = https://github.com/guillermooo/dart-sublime-bundle url = https://github.com/guillermooo/dart-sublime-bundle
+8 -1
View File
@@ -12,9 +12,15 @@
## Bugfixes ## Bugfixes
- Added missing Solarized themes, see #1027
- Fixed highlighting bug in Haskell source files, see #1026
# v0.15.3
## Bugfixes
- Cannot run `bat` with relative paths, see #1022 - Cannot run `bat` with relative paths, see #1022
- bat mishighlights Users that start with digits in SSH config, see #984 - bat mishighlights Users that start with digits in SSH config, see #984
- `--map-syntax` doesn't work with names provided through `--file-name` (@eth-p)
## New syntaxes ## New syntaxes
@@ -30,6 +36,7 @@
- Fix syntax detection for files called 'rails', see #1008 - Fix syntax detection for files called 'rails', see #1008
- Fix potential errors with syntax detection for symlinked files, see #1001 - Fix potential errors with syntax detection for symlinked files, see #1001
- `--map-syntax` doesn't work with names provided through `--file-name` (@eth-p)
## Other ## Other
Generated
+1 -1
View File
@@ -91,7 +91,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]] [[package]]
name = "bat" name = "bat"
version = "0.15.3" version = "0.15.4"
dependencies = [ dependencies = [
"ansi_colours 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", "ansi_colours 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)",
"ansi_term 0.12.1 (registry+https://github.com/rust-lang/crates.io-index)", "ansi_term 0.12.1 (registry+https://github.com/rust-lang/crates.io-index)",
+1 -1
View File
@@ -7,7 +7,7 @@ license = "MIT/Apache-2.0"
name = "bat" name = "bat"
readme = "README.md" readme = "README.md"
repository = "https://github.com/sharkdp/bat" repository = "https://github.com/sharkdp/bat"
version = "0.15.3" version = "0.15.4"
exclude = [ exclude = [
"assets/syntaxes/*", "assets/syntaxes/*",
"assets/themes/*", "assets/themes/*",
+1 -1
View File
@@ -197,7 +197,7 @@ the most recent release of `bat`, download the latest `.deb` package from the
[release page](https://github.com/sharkdp/bat/releases) and install it via: [release page](https://github.com/sharkdp/bat/releases) and install it via:
```bash ```bash
sudo dpkg -i bat_0.15.3_amd64.deb # adapt version number and architecture sudo dpkg -i bat_0.15.4_amd64.deb # adapt version number and architecture
``` ```
### On Alpine Linux ### On Alpine Linux
+2 -1
View File
@@ -47,4 +47,5 @@ The following files have been manually modified after converting from a `.tmLang
https://github.com/seanjames777/SML-Language-Definitiona as it is not https://github.com/seanjames777/SML-Language-Definitiona as it is not
kept in a standalone repository. The file generated is from kept in a standalone repository. The file generated is from
https://github.com/seanjames777/SML-Language-Definition/blob/master/sml.tmLanguage https://github.com/seanjames777/SML-Language-Definition/blob/master/sml.tmLanguage
* `Cabal.sublime_syntax` has been added manually from
https://github.com/SublimeHaskell/SublimeHaskell/ - we don't want to include the whole submodule because it includes other syntaxes ("Haskell improved") as well.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+1
View File
@@ -0,0 +1 @@
* linguist-vendored
+1 -1
View File
@@ -180,7 +180,7 @@ apt install bat
batの最新リリースを実行する場合、または Ubuntu/Debian の古いバージョンを使用している場合は、[release page](https://github.com/sharkdp/bat/releases) から最新の `.deb` パッケージをダウンロードし、 batの最新リリースを実行する場合、または Ubuntu/Debian の古いバージョンを使用している場合は、[release page](https://github.com/sharkdp/bat/releases) から最新の `.deb` パッケージをダウンロードし、
次の方法でインストールします: 次の方法でインストールします:
```bash ```bash
sudo dpkg -i bat_0.15.3_amd64.deb # adapt version number and architecture sudo dpkg -i bat_0.15.4_amd64.deb # adapt version number and architecture
``` ```
### On Alpine Linux ### On Alpine Linux
+1 -1
View File
@@ -170,7 +170,7 @@ apt install bat
만약 최근 릴리즈된 bat을 사용을 원하거나 buntu/Debian 예전 버전을 사용하는 경우, [릴리즈 페이지](https://github.com/sharkdp/bat/releases)에서 다음과 같이 `.deb` 패키지를 받아 설치 할 수도 있습니다: 만약 최근 릴리즈된 bat을 사용을 원하거나 buntu/Debian 예전 버전을 사용하는 경우, [릴리즈 페이지](https://github.com/sharkdp/bat/releases)에서 다음과 같이 `.deb` 패키지를 받아 설치 할 수도 있습니다:
```bash ```bash
sudo dpkg -i bat_0.15.3_amd64.deb # adapt version number and architecture sudo dpkg -i bat_0.15.4_amd64.deb # adapt version number and architecture
``` ```
### On Alpine Linux ### On Alpine Linux
-1
View File
@@ -430,7 +430,6 @@ mod tests {
assert_eq!(test.syntax_for_file("test.h"), "C++"); assert_eq!(test.syntax_for_file("test.h"), "C++");
assert_eq!(test.syntax_for_file("test.sass"), "Sass"); assert_eq!(test.syntax_for_file("test.sass"), "Sass");
assert_eq!(test.syntax_for_file("test.hs"), "Haskell (improved)");
assert_eq!(test.syntax_for_file("test.js"), "JavaScript (Babel)"); assert_eq!(test.syntax_for_file("test.js"), "JavaScript (Babel)");
} }
+1
View File
@@ -2,3 +2,4 @@ examples/* linguist-vendored
snapshots/* linguist-vendored snapshots/* linguist-vendored
benchmarks/* linguist-vendored benchmarks/* linguist-vendored
benchmarks/test-src/* linguist-vendored benchmarks/test-src/* linguist-vendored
scripts/* linguist-vendored
+35
View File
@@ -0,0 +1,35 @@
use bat::assets::HighlightingAssets;
/// This test ensures that we are not accidentally removing themes due to submodule updates.
#[test]
fn all_themes_are_present() {
let assets = HighlightingAssets::from_binary();
let mut themes: Vec<_> = assets.themes().collect();
themes.sort();
assert_eq!(
themes,
vec![
"1337",
"DarkNeon",
"Dracula",
"GitHub",
"Monokai Extended",
"Monokai Extended Bright",
"Monokai Extended Light",
"Monokai Extended Origin",
"Nord",
"OneHalfDark",
"OneHalfLight",
"Solarized (dark)",
"Solarized (light)",
"Sublime Snazzy",
"TwoDark",
"ansi-dark",
"ansi-light",
"base16",
"zenburn"
]
);
}
-3
View File
@@ -8,9 +8,6 @@ fn no_duplicate_extensions() {
// The '.h' extension currently appears in multiple syntaxes: C, C++, Objective C, // The '.h' extension currently appears in multiple syntaxes: C, C++, Objective C,
// Objective C++ // Objective C++
"h", "h",
// In addition to the standard Haskell syntax in 'Packages', we also ship the 'Cabal'
// syntax which comes with a "Haskell (improved)" syntax.
"hs",
// In addition to the standard JavaScript syntax in 'Packages', we also ship the // In addition to the standard JavaScript syntax in 'Packages', we also ship the
// 'Javascript (Babel)' syntax. // 'Javascript (Babel)' syntax.
"js", "js",