2
0
mirror of https://github.com/sharkdp/bat synced 2024-11-12 13:10:42 +00:00

Highlight *.pac files as JavaScript

closes #1515
This commit is contained in:
David Peter 2021-02-16 21:51:57 +01:00
parent 9ad401be87
commit 7eabb5e05a
2 changed files with 4 additions and 0 deletions

View File

@ -29,6 +29,7 @@
- Added Lean syntax, see #1446 (@Julian) - Added Lean syntax, see #1446 (@Julian)
- Added `.resource` extension for Robot Framework files, see #1386 - Added `.resource` extension for Robot Framework files, see #1386
- Added `gnuplot` syntax, see #1431 (@sharkdp) - Added `gnuplot` syntax, see #1431 (@sharkdp)
- Highlight *.pac (Proxy auto-config) files as JavaScript, see #1515 (@sharkdp)
## New themes ## New themes

View File

@ -42,6 +42,9 @@ impl<'a> SyntaxMapping<'a> {
MappingTarget::MapTo("Bourne Again Shell (bash)"), MappingTarget::MapTo("Bourne Again Shell (bash)"),
) )
.unwrap(); .unwrap();
mapping
.insert("*.pac", MappingTarget::MapTo("JavaScript (Babel)"))
.unwrap();
// See #1008 // See #1008
mapping mapping