John DeBoard
b1819cb09d
Merge branch 'master' into issue#2561
2024-01-22 20:10:41 -05:00
Filip Razek
e586751208
Attempt to fix integration test
2024-01-21 19:48:26 +01:00
Filip Razek
5c1f47359e
Run cargo fmt
2024-01-21 19:48:26 +01:00
Filip Razek
45ee2dc4c7
fix: Wrap file name in header
2024-01-21 19:48:26 +01:00
cyqsimon
230abfd2bc
Merge branch 'master' into syntax-mapping-refactor
2024-01-19 15:18:48 +08:00
cyqsimon
c0f2d6f934
Add note on subdirectory's irrelevance to ordering
2024-01-18 23:26:00 +08:00
cyqsimon
e4d637a3d8
Reverse precedence of syntax mappings specified on CLI
2024-01-18 22:41:57 +08:00
rhysd
8e66bc8722
Make the error handler FnMut
2024-01-17 22:00:29 +01:00
deboard
6ea3ac71d7
issue 2561, send all [bat error]s to stderr in default_error_handler
...
match default.
2024-01-02 17:54:49 -05:00
cyqsimon
f0a6fe216d
Benchmark prototype
2023-12-11 10:38:59 +08:00
cyqsimon
8a08025091
Disable builtin_mappings_are_lazily_evaluated
for ARM builds
2023-12-11 10:21:06 +08:00
cyqsimon
586c804b1e
Add test: builtin_mappings_are_lazily_evaluated
2023-12-11 10:21:06 +08:00
cyqsimon
e30161ac3c
Add test: builtin_mappings_matcher_only_compile_once
2023-12-11 10:21:06 +08:00
cyqsimon
3865908439
Add test: custom_mappings_precedence
2023-12-11 10:21:06 +08:00
cyqsimon
9474b4cf8b
Rename & sort syntax mapping tests
2023-12-11 10:21:06 +08:00
cyqsimon
b48bda21a3
Add test: all_fixed_builtin_mappings_can_compile
2023-12-11 10:21:06 +08:00
cyqsimon
36073a3d95
Document another rule ignore condition
2023-12-11 10:21:06 +08:00
cyqsimon
1f10d846a3
Fix tests
...
1. for override test, test for something in `common`
2. move git mappings to `common`
2023-12-11 10:21:05 +08:00
cyqsimon
22531eab90
Port all mappings to new system
2023-12-11 10:21:05 +08:00
cyqsimon
0c1b80faab
Impl per-target syntax mappings
2023-12-11 10:21:05 +08:00
cyqsimon
ad628c0471
Fix iterator lifetime incompatibility
2023-12-11 10:21:05 +08:00
cyqsimon
f483d2df42
Lazily compile GlobMatcher
s
2023-12-11 10:21:05 +08:00
cyqsimon
4ad3002543
s/Lazy<GlobMatcher>/Lazy<Option<GlobMatcher>>/
2023-12-11 10:21:05 +08:00
cyqsimon
cfd622d6e1
Migrate SyntaxMapping
impl to new system
...
Most existing builtins are removed but not yet ported, so the test
`user_can_override_builtin_mappings` should fail. It should pass once the old
rules have been ported.
2023-12-11 10:21:05 +08:00
cyqsimon
1c7c9a6b6d
Split syntax_mapping/builtin.rs
2023-12-11 10:21:05 +08:00
cyqsimon
de6d418d42
Remove BuiltinMatcher
enum
...
Explanation added as comments in code
Using plain `Lazy<Option<GlobMatcher>>` is just better
2023-12-11 10:21:04 +08:00
cyqsimon
7e1fbcfe95
Fix visibility for SyntaxMapping::get_syntax_for
...
This change was made in 31fb708, but then was reverted (I assume incorrectly)
in 6246485.
2023-12-11 10:21:04 +08:00
cyqsimon
0fea82cff9
Minor improvement of variable naming accuracy
2023-12-11 10:20:11 +08:00
cyqsimon
64840fbbae
join_segments
-> build_glob_string
...
- this is a more descriptive name
2023-12-11 10:20:11 +08:00
cyqsimon
827b3eca2f
Add unset *.conf
example
2023-12-11 10:20:11 +08:00
cyqsimon
9478d2dfe8
Isolate variables at compile time
2023-12-11 10:20:11 +08:00
cyqsimon
d24501ab5e
include!
generated mappings in source
2023-12-11 10:20:11 +08:00
cyqsimon
52f94b4623
Clarify syntax selection algorithm behaviour
2023-12-11 10:20:10 +08:00
cyqsimon
37fd050100
Describe filename ordering more accurately
2023-12-11 10:20:10 +08:00
cyqsimon
83286975ff
Add ordering prefix to git-config example
2023-12-11 10:20:10 +08:00
cyqsimon
f705fcb984
Add global git-config example
2023-12-11 10:20:10 +08:00
cyqsimon
9ca1f20f43
Add specification draft
2023-12-11 10:20:10 +08:00
Lena
28990bc451
fix: display color when NO_COLOR is an empty string ( #2767 )
2023-12-02 11:43:55 +00:00
einfachIrgendwer0815
3d87b25b19
Add unicode/caret replacements for all control characters ( #2712 )
2023-10-20 19:41:48 +02:00
rhysd
e5c81ed41e
Replace our own macros to write buffers with standard macros
2023-10-05 09:21:26 +02:00
skoriop
0937d575fd
fix: rewrite overflow test using usize::MAX
2023-10-05 09:20:09 +02:00
skoriop
d89df18de2
test: add test for overflow in LineRange::from
2023-10-05 09:20:09 +02:00
skoriop
9fcc57e496
fix: integer overflow in LineRange::parse_range
2023-10-05 09:20:09 +02:00
Linda_pp
9f795dd947
Associate *.sarif
files with json
syntax ( #2695 )
...
* Associate `*.sarif` files with `json` syntax
* Update changelog for #2695
2023-10-04 09:34:40 +02:00
Nicolas AMBRY
5a240f36b9
Case insensitive --map-syntax
( #2650 )
...
Co-authored-by: Nicolas AMBRY <nicolas.ambry@atos.net>
2023-09-14 16:04:43 +02:00
J-Kappes
e2bf85e749
Make -pp override --paging and vice versa when passed as a later argument. ( #2660 )
2023-09-14 05:45:46 +02:00
Anomalocaridid
433176ab54
require LESSOPEN to have exactly one %s
2023-09-08 06:25:20 +02:00
Anomalocaridid
b56021ffa9
make LESSOPEN support opt-in
2023-09-08 06:25:20 +02:00
Anomalocaridid
ac2953c070
pass --no-lessopen to less by default
2023-09-08 06:25:20 +02:00
Anomalocaridid
e32ad0b048
Add $LESSOPEN
and $LESSCLOSE
support ( #2444 )
2023-09-02 08:48:26 +02:00