Martin Nordholts
994c21a5e1
syntax-tests: Make CpuInfo test actually work ( #1887 )
...
* 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
3 years ago
Georgy Komarov
d04a83de7b
Add Racket syntax
3 years ago
David Peter
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.
3 years ago
Martin Nordholts
9ed9a6fc3d
Simplify HighlightingAssets::get_syntax() first_line logic ( #1852 )
...
And make self.get_first_line_syntax() be called lazily.
3 years ago
David Peter
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.
3 years ago
Martin Nordholts
d935ea1cda
Add regression testing for the custom assets functionality ( #1829 )
...
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
3 years ago
Ville Skyttä
7c41bd72da
assets: add Debian ucf backups to ignored suffixes
...
Refs https://manpages.debian.org/bullseye/ucf/ucf.1.en.html
3 years ago
a1346054
51edacb5eb
style: trim excess whitespace
3 years ago
a1346054
5197ef9048
fix: spelling
3 years ago
a1346054
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.
3 years ago
Martin Nordholts
f5c1cb2dff
Run 'cargo fmt'
3 years ago
Keith Hall
133b06e945
Fix syslog syntax highlighting when no colon after "process"
3 years ago
Mario Finelli
699f1e65cc
Add slim syntax test
3 years ago
Bill Risher
6c62ed5608
revamped integration test, made CHANGELOG changes
3 years ago
Bill Risher
bf78288e9e
feat(config): added recognition of $BAT_CONFIG_DIR
3 years ago
Ville Skyttä
2d92a4dbb3
Allow colon in syslog loghost
...
Makes it work with IPv6 addresses.
3 years ago
Ville Skyttä
f508ddf66d
Allow period in syslog loghost
...
Makes it work with FQDN's and IPv4 addresses.
3 years ago
Ville Skyttä
02218c916c
Allow period in syslog process name
3 years ago
Martin Nordholts
89217e0d58
Make --no-paging and --no-pager work again
3 years ago
Martin Nordholts
bd797c75a4
integration_tests: Add diagnostic_sanity_check()
3 years ago
Layle | Luca
51c7eb7ac1
Included LLVM syntax highlighting submodule and added regression tests
3 years ago
Keith Hall
6d5ff671e7
Add HTTP Request/Response syntax as a git submodule
3 years ago
Martin Nordholts
b040efff79
Support a hidden arg --no-custom-assets that skips loading assets from the cache
3 years ago
Martin Nordholts
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 #1747 .
3 years ago
Sarvesh MD
f464b1ba39
Update battest.py
...
Add decorator test `@classmethod` and fixed spellings.
3 years ago
Ville Skyttä
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.
3 years ago
David Peter
64763eafbe
Update Julia syntax test
3 years ago
Ville Skyttä
ddb39ef2f6
Add syntax tests for ignored filename suffixes
3 years ago
Mohamed Abdelnour
12ecb325c9
Modify Linguist overrides
3 years ago
Mohamed Abdelnour
c18afcb01a
Add Verilog syntax test file
3 years ago
Mohamed Abdelnour
63043d4a60
Add varlink syntax test file
3 years ago
Mohamed Abdelnour
76034880ae
Add TypeScriptReact syntax test file
3 years ago
Mohamed Abdelnour
768189859a
Add Stylus syntax test file
3 years ago
Mohamed Abdelnour
6e5a2a5c51
Add Strace syntax test file
3 years ago
Mohamed Abdelnour
9935c4984c
Add Robot Framework syntax test file
3 years ago
Mohamed Abdelnour
a0a5e30c39
Add Rego syntax test file
3 years ago
Mohamed Abdelnour
4126bbeead
Add Puppet syntax test file
3 years ago
Mohamed Abdelnour
a5b79295d7
Add NAnt Build File syntax test file
3 years ago
Mohamed Abdelnour
e917784932
Add Literate Haskell syntax test file
3 years ago
Mohamed Abdelnour
f46b90d28d
Add jsonnet syntax test file
3 years ago
Mohamed Abdelnour
64cbfbed47
Add Java Server Page (JSP) syntax test file
3 years ago
Mohamed Abdelnour
1ced35ec76
Add 'NOTICE' to list of file names to skip
3 years ago
Mohamed Abdelnour
16d346773b
Add Fortran Namelist syntax test file
3 years ago
Mohamed Abdelnour
b02120cf66
Add Fortran (Fixed Form) syntax test file
3 years ago
Mohamed Abdelnour
702b5caf2d
Add Fortran (Modern) syntax test file
3 years ago
Mohamed Abdelnour
d395f64f58
Add F# syntax test file
3 years ago
Mohamed Abdelnour
c9627040cc
Add CoffeeScript syntax test file
3 years ago
Mohamed Abdelnour
b1f69434f9
Add Cabal syntax test file
3 years ago
Mohamed Abdelnour
8435cad602
Merge master
3 years ago
Mohamed Abdelnour
8b6341458b
Add XAML test file
3 years ago