David Peter
73c16574e6
Merge branch 'master' into fix-1438-newline-can-be-added-even-if-style-plain
2020-12-21 08:22:01 +01:00
Martin Nordholts
60e00d49a9
Fix #1443 macOS: regression_test.sh: mktemp: illegal option ( #1444 )
...
The macOS version of mktemp does not recognize the --suffix option.
Using pure -d should work since, it seems [1], macOS 10.11 however.
So to make the script work on macOS, stop using the --suffix option.
The downside is of course that the temporary dir will have an anonymous
name, but I see no risk of confusion given how short-lived the usage of
the dir is, and given the context it is used.
[1] https://unix.stackexchange.com/questions/30091/fix-or-alternative-for-mktemp-in-os-x
2020-12-21 08:16:49 +01:00
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
Ethan P
a838ff47b5
Merge pull request #1307 from molcay/master
...
Add syntax tests for CpuInfo and MemInfo filetype
2020-10-11 11:58:59 -07:00
okezieuc
8bd078caeb
updated the php commit
...
I reverted the commit and prevented the vue submodules from being affected
2020-10-11 19:58:53 +01:00
okezieuc
b7271a2a6d
Revert "added php test file"
...
This reverts commit ecde418abb
.
2020-10-11 19:53:36 +01:00
okezieuc
ecde418abb
added php test file
...
I added a sample test.php file that covers a lot of python syntax
2020-10-11 18:48:29 +01:00
M. Olcay TERCANLI
51036ced9d
Add MemInfo syntax test
2020-10-11 19:19:11 +03:00
M. Olcay TERCANLI
b6c1ec3a24
Add CpuInfo syntax test
2020-10-11 19:18:53 +03:00
Felipe Garcia
46004001cb
Add Clojure syntax test.
2020-10-11 09:48:06 +02:00
Zachary J. Rollyson
f10c8ce25e
Add GraphQl syntax test sample
2020-10-11 09:46:25 +02:00
grg121
457ab84065
Add basic Dockerfile syntax highlighting test files
2020-10-10 21:43:11 +02:00
Zachary J. Rollyson
3bcb5452aa
Add HTML syntax test sample
2020-10-10 19:13:55 +02:00
venky
1f0e53a44d
Added BibTeX syntax tests
2020-10-10 19:13:05 +02:00
sharkdp
a81254ed2a
Fix line endings
2020-10-09 23:22:30 +02:00
Akshat Gadhwal
fdef133d3d
Update test.swift
2020-10-09 23:22:30 +02:00
Akshat Gadhwal
fd01f0a0ee
ADDED swift test file for syntax highlighting
2020-10-09 23:22:30 +02:00
sharkdp
5b095ed6f3
Fix line endings
2020-10-09 23:18:53 +02:00
Akshat Gadhwal
e7a3f34959
ADDED test file for R
2020-10-09 23:18:53 +02:00
Daniel Wolbach
06d0c8f056
add CMake syntax highlighting test
2020-10-09 22:50:47 +02:00
Jacky Hui
4064b8ff14
Added test file for Erlang.
2020-10-09 07:38:08 +02:00
Benjamin Neff
b6e729abeb
Add Diff syntax highlight test
2020-10-08 12:50:09 +02:00
Filip Czaplicki
5fe98689d4
test: x86-64 Assembly NASM syntax test
2020-10-07 18:00:33 +02:00
Daniel Wolbach
8832a96e82
add GLSL syntax highlighting test
2020-10-07 17:58:33 +02:00
R1tschY
09631ed119
Add Batch syntax test
2020-10-07 07:41:42 +02:00
Spencer Williams
9257c7ce20
Regenerate using a fresh latest build of bat
2020-10-07 07:40:15 +02:00
Spencer Williams
b30f9a1677
Add sample Crystal file
2020-10-07 07:40:15 +02:00
Felipe Garcia
e6c3f96931
Add Groovy syntax test.
2020-10-07 07:38:52 +02:00
Felipe Garcia
85ff81f238
Add Lua syntax test.
2020-10-07 07:37:19 +02:00
Thiago Arrais
aa205c6a9f
Add CSV syntax hightlighting test
2020-10-06 19:47:33 +02:00
scott.eppler
44bfad24a1
Add Terraform example file for Syntax Highlighting
2020-10-06 19:40:41 +02:00
Gede Wahyu
13e01841ca
pascal: add syntax highlight file
2020-10-06 07:44:38 +02:00
sharkdp
a999975bc9
Add missing newline
2020-10-06 07:17:10 +02:00
Matthew Zegar
edf30e1fa1
Added missing highlighted generated test file
2020-10-06 07:17:10 +02:00
Matthew Zegar
f41bf2082a
Added CSS syntax highlight file and folder
2020-10-06 07:17:10 +02:00
Ethan P
894d3f1722
Replace SCSS example with unlicensed one
2020-10-06 06:51:51 +02:00
Ethan P
83d96e2bbb
Rename SASS tests to SCSS, since they're using SCSS syntax
2020-10-06 06:51:51 +02:00
uabua
7a180e22ff
Add SQL syntax highlighting test
2020-10-05 23:39:01 +02:00
scott.eppler
e85064e4cf
Fix mismatch between syntax-test and hightlighted
...
I needed to re-run `update.sh` script one last time.
2020-10-05 22:03:27 +02:00
scott.eppler
dd95f8b5cb
Add example file for YAML highlighting
...
Relates to #1213
2020-10-05 22:03:27 +02:00
Niklas Sombert
975487f630
Add syntax highlighting test file for INI ( #1213 )
2020-10-05 21:09:24 +02:00
Akshat Gadhwal
c92ac809a5
added test.dart
2020-10-05 18:53:35 +02:00
DanielVip3
ec842e8d51
Added a JavaScript test file
2020-10-05 17:26:13 +02:00
henil
6d6e3900c3
add LICENSE
2020-10-05 17:25:37 +02:00
henil
0516a0d7a6
add .gitignore test
2020-10-05 17:25:37 +02:00
henil
adbbe158db
forgot to update highlighted file after changing
2020-10-05 14:24:16 +02:00
henil
6d2be4a305
License attribution not required
2020-10-05 14:24:16 +02:00
henil
78c9a5d45b
add julia test file
2020-10-05 14:24:16 +02:00
Mithil Poojary
5fa1645165
Add Java file test
2020-10-05 13:56:43 +02:00
Mithil Poojary
e58b20f68d
Add C file test
2020-10-05 09:06:47 +02:00
Logan Saso
0ce697daba
#1241 Added newline to end of example.xml
2020-10-05 09:02:56 +02:00