mirror of
https://github.com/sharkdp/bat
synced 2024-11-18 15:26:16 +00:00
commit
113276a62b
@ -25,6 +25,7 @@
|
|||||||
- `Julia`: Fix syntax highlighting for function name starting with `struct`, see #2230
|
- `Julia`: Fix syntax highlighting for function name starting with `struct`, see #2230
|
||||||
- Minor update to `LiveScript`, see #2291
|
- Minor update to `LiveScript`, see #2291
|
||||||
- Associate `.mts` and `.cts` files with the `TypeScript` syntax. See #2236 (@kidonng)
|
- Associate `.mts` and `.cts` files with the `TypeScript` syntax. See #2236 (@kidonng)
|
||||||
|
- Fish history is mapped to YAML. See #2237 (@kidonng)
|
||||||
|
|
||||||
## Themes
|
## Themes
|
||||||
|
|
||||||
|
@ -66,6 +66,9 @@ impl<'a> SyntaxMapping<'a> {
|
|||||||
mapping
|
mapping
|
||||||
.insert("*.pac", MappingTarget::MapTo("JavaScript (Babel)"))
|
.insert("*.pac", MappingTarget::MapTo("JavaScript (Babel)"))
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
mapping
|
||||||
|
.insert("fish_history", MappingTarget::MapTo("YAML"))
|
||||||
|
.unwrap();
|
||||||
|
|
||||||
// See #2151, https://nmap.org/book/nse-language.html
|
// See #2151, https://nmap.org/book/nse-language.html
|
||||||
mapping
|
mapping
|
||||||
|
11
tests/syntax-tests/highlighted/fish_history/fish_history
vendored
Normal file
11
tests/syntax-tests/highlighted/fish_history/fish_history
vendored
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
[38;2;248;248;242m-[0m[38;2;248;248;242m [0m[38;2;249;38;114mcmd[0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;230;219;116mecho "hello world"[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mwhen[0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m1656950812[0m
|
||||||
|
[38;2;248;248;242m-[0m[38;2;248;248;242m [0m[38;2;249;38;114mcmd[0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;230;219;116mls /tmp[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mwhen[0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m1656950818[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mpaths[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m-[0m[38;2;248;248;242m [0m[38;2;230;219;116m/tmp[0m
|
||||||
|
[38;2;248;248;242m-[0m[38;2;248;248;242m [0m[38;2;249;38;114mcmd[0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;230;219;116mcp .local/share/fish/fish_history .[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mwhen[0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m1656950833[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mpaths[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m-[0m[38;2;248;248;242m [0m[38;2;230;219;116m.local/share/fish/fish_history[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m-[0m[38;2;248;248;242m [0m[38;2;190;132;255m.[0m
|
11
tests/syntax-tests/source/fish_history/fish_history
vendored
Normal file
11
tests/syntax-tests/source/fish_history/fish_history
vendored
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
- cmd: echo "hello world"
|
||||||
|
when: 1656950812
|
||||||
|
- cmd: ls /tmp
|
||||||
|
when: 1656950818
|
||||||
|
paths:
|
||||||
|
- /tmp
|
||||||
|
- cmd: cp .local/share/fish/fish_history .
|
||||||
|
when: 1656950833
|
||||||
|
paths:
|
||||||
|
- .local/share/fish/fish_history
|
||||||
|
- .
|
Loading…
Reference in New Issue
Block a user