2
0
mirror of https://github.com/sharkdp/bat synced 2024-11-02 21:40:15 +00:00
Commit Graph

146 Commits

Author SHA1 Message Date
Martin Nordholts
68d525cd8b Don't add artificial newline to last line if --style=plain
This fixes #1438.

Note however, that using a pager such as less will add a newline itself.
So to actually not print a newline for such files, you need to either
disable paging:

  bat --style=plain --paging=never no-newline-at-end-of-file.txt

or use a "pager" that does not add a newline:

  bat --style=plain --pager=cat no-newline-at-end-of-file.txt

Note that we also update syntax tests file since a bunch of them had
missing newlines on the last lines.
2020-12-19 10:32:50 +01:00
henil
591eba66a3 add new syntax test files 2020-11-23 15:43:58 +01:00
Byron Alley
3dc5fc54df Import syntax regression test for Ruby Haml 2020-11-01 09:46:54 +01:00
Byron Alley
bac84b4c8b Add sshd_config syntax highlighting test 2020-11-01 09:38:03 +01:00
David Peter
3a612f063e
Merge branch 'master' into master 2020-10-30 19:36:27 +01:00
Ján Priner
9daea73bba Add Ninja highlight test 2020-10-30 19:14:51 +01:00
Kyle Hubert
072fb380d8
Add Svelte as a syntax 2020-10-29 19:33:09 +01:00
Horki
cc6cf48256 1213: org mode highlight testing 2020-10-29 19:21:46 +01:00
Horki
e571cb553b 1213: nix; added trailing new line 2020-10-25 21:03:30 +01:00
Horki
bf9f6e872d 1312: nix; fixed src 2020-10-25 21:03:30 +01:00
Horki
8348c1b746 1213: nix; fix buildInputs arr 2020-10-25 21:03:30 +01:00
Horki
0a9744ac95 add nix highligh 2020-10-25 21:03:30 +01:00
Dobe Peter
ec8072d51f Add PowerShell syntax test
Part of the work for issue #1213.

A short PowerShell script and the corresponding syntax-highlighted output
has been added. The script exhibits many of the peculiarities of the
PowerShell syntax.
2020-10-25 08:04:27 +01:00
Stefano Probst
7a7bb80e23 Add Git Config syntax test file
cc sharkdp/bat#1213
2020-10-24 14:45:54 +02:00
Alan Berndt
99ac5c3045 Add fairly complex nginx config.
This is to contribute to issue #1213.  I took some of the more
complicated servers I am running as examples.  Everything looks to be
correctly highlighted compared to vim's syntax highlighting.
2020-10-24 14:10:51 +02:00
R1tschY
efab00a9de Add Git Attributes syntax test 2020-10-24 14:09:52 +02:00
Keith Hall
cfdb853ea6 End highlighting of C code in man pages when no longer relevant 2020-10-24 12:30:25 +02:00
Keith Hall
41e857ea16 Highlight C code in all man pages sections 2020-10-24 12:30:25 +02:00
Frank Schmitt
5b2da2b08d #1213 expanded D test file 2020-10-24 12:28:15 +02:00
Frank Schmitt
5e0a608ea6 #1213 added very basic test file for D 2020-10-24 12:28:15 +02:00
R1tschY
3729aefb6f Add QML syntax test 2020-10-24 12:27:16 +02:00
henil
8a2122b4a4 Add test file for /etc/group 2020-10-24 12:26:41 +02:00
Tommaso Pifferi
cc6f6fdb1d Add tests for Vue component syntax 2020-10-24 12:25:55 +02:00
Stefano Probst
5ec4936a4f Add Graphviz DOT example files
cc sharkdp/bat#1213
2020-10-24 12:25:09 +02:00
Stefano Probst
be84682bcb Add MATLAB syntax test file
cc sharkdp/bat#1213
2020-10-24 12:22:46 +02:00
ubaumann
b07f3b4e74 Add Salt State (SLS) test file 2020-10-23 19:40:13 +02:00
Zachary J. Rollyson
a3f037773a feat: include dotfiles (.) in create_highlighted_versions.py search 2020-10-17 17:40:51 +02:00
Zachary J. Rollyson
c71c8980cf feat: add syntax sample for dotEnv files 2020-10-17 17:40:51 +02:00
Keith Hall
575888d81b Fix Manpage C highlighting regression 2020-10-17 16:46:18 +02:00
sharkdp
3539d3e72d Add Manpage syntax regression test for select(2) 2020-10-17 16:46:18 +02:00
Keith Hall
bb25111ca9 Improve Manpage syntax 2020-10-17 16:46:18 +02:00
Zachary J. Rollyson
3c756a65a6 feat: add syntax tests for sass 2020-10-17 16:41:11 +02:00
Matthieu Vion
8d574826c9 Added reStructuredText reference for syntax tests 2020-10-16 19:03:20 +02:00
Matthieu Vion
7c7eebbe83 Changed Makefile syntax test source
Now using Makefile from the Redis project
2020-10-16 14:22:59 +02:00
Matthieu Vion
57ad85814b Added Makefile to syntax tests
Make progress in #1213
2020-10-16 14:22:59 +02:00
Benjamin Sinkula
4b2b419400 Add Common Lisp syntax highlighting test files 2020-10-16 08:58:04 +02:00
Celeo
b83716f0eb feat: add Nim syntax test file 2020-10-16 08:56:36 +02:00
sharkdp
4d6b2fec13 Add PureScript syntax test 2020-10-14 08:43:11 +02:00
Benjamin Sinkula
5650624822 Add ActionScript 3 syntax test 2020-10-14 08:07:20 +02:00
Saul Blanco Tejero
bf07b0be58 Add Perl test file 2020-10-14 07:45:42 +02:00
Sebastian Andersson
eeea53759b Add apache httpd.conf example 2020-10-14 07:43:38 +02:00
okezieuc
a39f1e0f9b added new syntax highlighting files
I added a sample etc/hosts file and a sample requirements.txt file. I didn't know there was already a sample YAML file because it wasn't ticked in the issue so I added some extra syntax that I had in my own to the previous  example.yaml file.
2020-10-14 07:41:13 +02:00
sharkdp
33128d75f2 Use list.extend(…) 2020-10-11 22:18:14 +02:00
sharkdp
bf87f37039 Better ask forgiveness than permission 2020-10-11 22:18:14 +02:00
sharkdp
62e715ff5b Formatting 2020-10-11 22:18:14 +02:00
Logan Saso
de47bd2323 Added newline to multicharacter line of plaintext generation script 2020-10-11 21:31:34 +02:00
Logan Saso
19b55706ee Fixed file location in creation script 2020-10-11 21:31:34 +02:00
Logan Saso
6c68198d19 Updated creation script and README to match generation script 2020-10-11 21:31:34 +02:00
Logan Saso
f3c760c25f #1244 Use [].copy and path.exists instead of more cumbersome solutions
#1244 Slightly optimized create_highlighted_versions.py so that it won't walk the source path when it should be skipping the file

#1244 Updated README.md in plaintext source folder

#1244 Added extra option loading from `bat_options` file in directory and significantly reduced size of plaintext source

#1244 Updated create_highlighted_versions.py to ignore README.md files and use the --show-all option for manually-defined binary files

#1244 Updated plaintext file with command

bat -A --no-config --style=plain --color=always --theme='1337' --italic-text=always src/Plaintext/plaintext.txt > highlighted/Plaintext/plaintext.txt

#1244 Added example plaintext file
2020-10-11 21:31:34 +02:00
Ethan P
24fe946c06
Merge pull request #1308 from okezieuc/add-php-file
added php test file
2020-10-11 12:25:15 -07:00