Kienyew
cab5ddf6ae
Fix Typo
2020-08-12 06:45:24 +02:00
Caio Alonso
fc121f0c87
Defaults *.fs to F#
2020-06-26 21:42:05 -03:00
Guido Cella
44deddbbfe
Highlight pacman hooks as ini
2020-06-21 10:58:32 +02:00
Guido Cella
aa8a2b1769
Highlight systemd files as ini
2020-06-21 10:58:32 +02:00
sharkdp
74e8373e34
Return mappings as a slice
2020-06-03 19:44:41 +02:00
Alex Novak
48b4a6a906
Adds a little logic to main to get other mappings from config
2020-06-03 19:44:41 +02:00
sharkdp
c4031ad65c
Fix syntax detection for files called 'rails'
...
closes #1008
2020-05-24 11:27:42 +02:00
sharkdp
0064321323
cargo fmt
2020-04-23 00:56:35 +02:00
sharkdp
793af6b911
Add a syntax mapping for bats own config file
2020-04-22 23:58:41 +02:00
sharkdp
702cb198da
Rename error module
2020-04-22 23:55:28 +02:00
sharkdp
dfd3ef022e
Add more default mappings, reverse traversal
2020-03-22 11:02:51 +01:00
sharkdp
bd8a13dbc9
Initial implementation of glob-based syntax mapping
2020-03-22 11:02:51 +01:00
sharkdp
90397a8aac
Hide SyntaxMapping::replace
2020-03-21 22:21:23 +01:00
Daniele Esposti
f259ff2920
Formatted code
2019-03-09 07:43:41 +01:00
Daniele Esposti
82f14121bd
Applied linter fixes
2019-03-09 07:43:41 +01:00
Ole Martin Ruud
348c9f3562
Enhance SyntaxMapping with impl Trait
2018-11-27 20:36:23 +01:00
sharkdp
10965a6122
Implement syntax mapping
...
This adds a `-m`/`--map-syntax` option that allows users to (re)map
certain file extensions or file names to an existing syntax.
For example:
```
bat --map-syntax .config:json
```
The option can be use multiple times. Note that you can easily make
these mappings permanent by using `bat`s new configuration file.
closes #169
2018-10-17 23:08:19 +02:00