1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-06-30 12:13:23 +01:00
Commit Graph

391 Commits

Author SHA1 Message Date
271842d87c Add bat panic regression test when LiveScript is missing 2021-10-23 10:40:27 +02:00
2339d78bf4 update snapshot tests 2021-10-17 21:21:23 +02:00
994c21a5e1 syntax-tests: Make CpuInfo test actually work ()
* syntax-tests: Make CpuInfo test actually work

File extension matching is case-sensitive, so extension needs to be .cpuinfo for
the syntax to actually be used.

* Also fix MemInfo
2021-10-06 06:50:11 +02:00
d04a83de7b Add Racket syntax 2021-10-03 19:17:26 +02:00
44a332c1c4 Parallelize syntax regression tests
The syntax highlighting regression tests can be trivially parallelized.
On my notebook (8 core), this results in a 3.9x speedup.
2021-09-22 22:18:01 +02:00
9ed9a6fc3d Simplify HighlightingAssets::get_syntax() first_line logic ()
And make self.get_first_line_syntax() be called lazily.
2021-09-16 17:01:12 +02:00
27f046ec03 Consolidate environment variable lists
We want to make sure that all of our test environments are clean from
possible outside modification. This consolidates the list of used
environment variables in Rust-based and Python-based integration tests.

Note that there is also a similar list in `src/bin/bat/main.rs` which
is even more exhaustive (for bug report collection). However, some
of these variables can not possibly have an effect on test environments.
2021-09-07 20:17:16 +02:00
d935ea1cda Add regression testing for the custom assets functionality ()
The test is following the same steps regular users are instructed to follow:
https://github.com/sharkdp/bat/blob/master/README.md#adding-new-syntaxes--language-definitions
2021-09-07 17:01:15 +02:00
7c41bd72da assets: add Debian ucf backups to ignored suffixes
Refs https://manpages.debian.org/bullseye/ucf/ucf.1.en.html
2021-08-29 19:55:00 +02:00
51edacb5eb style: trim excess whitespace 2021-08-21 23:07:37 +02:00
5197ef9048 fix: spelling 2021-08-21 23:07:37 +02:00
19678527e5 chore(find-slow-to-highlight-files.py): be explicit about using python3
In many distros, `python` no longer leads to anything, and instead
`python2` or `python3` need to be explicitly run.
2021-08-21 23:07:37 +02:00
f5c1cb2dff Run 'cargo fmt' 2021-08-19 07:18:05 +02:00
133b06e945 Fix syslog syntax highlighting when no colon after "process" 2021-08-16 22:15:39 +03:00
699f1e65cc Add slim syntax test 2021-08-16 06:16:53 +02:00
6c62ed5608 revamped integration test, made CHANGELOG changes 2021-08-14 22:02:58 +02:00
bf78288e9e feat(config): added recognition of $BAT_CONFIG_DIR 2021-08-14 22:02:58 +02:00
2d92a4dbb3 Allow colon in syslog loghost
Makes it work with IPv6 addresses.
2021-08-11 21:36:43 +03:00
f508ddf66d Allow period in syslog loghost
Makes it work with FQDN's and IPv4 addresses.
2021-08-11 16:43:04 +03:00
02218c916c Allow period in syslog process name 2021-08-11 16:41:56 +03:00
89217e0d58 Make --no-paging and --no-pager work again 2021-08-09 13:37:56 +02:00
bd797c75a4 integration_tests: Add diagnostic_sanity_check() 2021-08-07 20:07:46 +02:00
51c7eb7ac1 Included LLVM syntax highlighting submodule and added regression tests 2021-08-05 20:20:33 +02:00
6d5ff671e7 Add HTTP Request/Response syntax as a git submodule 2021-07-29 21:36:16 +02:00
b040efff79 Support a hidden arg --no-custom-assets that skips loading assets from the cache 2021-07-29 08:27:02 +02:00
a81009607a HighlightingAssets: Make .syntaxes() and syntax_for_file_name() failable
Or rather, introduce new versions of these methods and deprecate the old ones.

This is preparation to enable robust and user-friendly support for lazy-loading.
With lazy-loading, we don't know if the SyntaxSet is valid until after we try to
use it, so wherever we try to use it, we need to return a Result. See discussion
about panics in .
2021-07-29 08:26:18 +02:00
f464b1ba39 Update battest.py
Add decorator test `@classmethod` and fixed spellings.
2021-07-26 08:44:05 +02:00
7537e309d8 Add groff syntax
The syntax is named "Man Page" upstream, but our man page syntax is
different, it's for rendered man pages. Rename to Groff and remove
`.man` from extensions.
2021-07-25 13:27:30 +02:00
64763eafbe Update Julia syntax test 2021-07-13 09:07:29 +02:00
ddb39ef2f6 Add syntax tests for ignored filename suffixes 2021-07-09 06:34:11 +02:00
12ecb325c9 Modify Linguist overrides 2021-06-14 08:36:20 +02:00
c18afcb01a Add Verilog syntax test file 2021-06-01 22:36:56 +02:00
63043d4a60 Add varlink syntax test file 2021-06-01 22:36:56 +02:00
76034880ae Add TypeScriptReact syntax test file 2021-06-01 22:36:56 +02:00
768189859a Add Stylus syntax test file 2021-06-01 22:36:56 +02:00
6e5a2a5c51 Add Strace syntax test file 2021-06-01 22:36:56 +02:00
9935c4984c Add Robot Framework syntax test file 2021-06-01 22:36:56 +02:00
a0a5e30c39 Add Rego syntax test file 2021-06-01 22:36:56 +02:00
4126bbeead Add Puppet syntax test file 2021-06-01 22:36:56 +02:00
a5b79295d7 Add NAnt Build File syntax test file 2021-06-01 22:36:56 +02:00
e917784932 Add Literate Haskell syntax test file 2021-06-01 22:36:56 +02:00
f46b90d28d Add jsonnet syntax test file 2021-06-01 22:36:56 +02:00
64cbfbed47 Add Java Server Page (JSP) syntax test file 2021-06-01 22:36:56 +02:00
1ced35ec76 Add 'NOTICE' to list of file names to skip 2021-06-01 22:36:56 +02:00
16d346773b Add Fortran Namelist syntax test file 2021-06-01 22:36:56 +02:00
b02120cf66 Add Fortran (Fixed Form) syntax test file 2021-06-01 22:36:56 +02:00
702b5caf2d Add Fortran (Modern) syntax test file 2021-06-01 22:36:56 +02:00
d395f64f58 Add F# syntax test file 2021-06-01 22:36:56 +02:00
c9627040cc Add CoffeeScript syntax test file 2021-06-01 22:36:56 +02:00
b1f69434f9 Add Cabal syntax test file 2021-06-01 22:36:56 +02:00