mirror of
https://github.com/sharkdp/bat
synced 2026-08-03 18:51:44 +00:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9e65ecd03e | |||
| 9cb43ef64d | |||
| bb18ece8a4 | |||
| 2ab6474761 | |||
| fe20328ab7 | |||
| d84ac09abd | |||
| 69e6cae0a7 |
@@ -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
@@ -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
@@ -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
@@ -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/*",
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Vendored
+2
-1
@@ -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.
|
||||||
|
|||||||
Vendored
BIN
Binary file not shown.
Vendored
-1
Submodule assets/syntaxes/02_Extra/Cabal deleted from 2d98cb79eb
Vendored
BIN
Binary file not shown.
Vendored
+1
-1
Submodule assets/themes/Solarized updated: 3707f68ddc...87e01090cf
Vendored
+1
@@ -0,0 +1 @@
|
|||||||
|
* linguist-vendored
|
||||||
+1
-1
@@ -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
@@ -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
|
||||||
|
|||||||
@@ -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)");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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"
|
||||||
|
]
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user