2
0
mirror of https://github.com/sharkdp/bat synced 2024-11-15 00:12:57 +00:00
bat/tests/syntax-tests/source
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
..
ActionScript Don't add artificial newline to last line if --style=plain 2020-12-19 10:32:50 +01:00
Apache Add apache httpd.conf example 2020-10-14 07:43:38 +02:00
AppleScript add new syntax test files 2020-11-23 15:43:58 +01:00
ARM Assembly test: ARM Assembly syntax test file 2020-10-05 07:12:24 +02:00
AsciiDoc test: add asciidoc highlight test 2020-10-04 15:23:49 +02:00
ASP add new syntax test files 2020-11-23 15:43:58 +01:00
Assembly (x86_64) test: x86-64 Assembly NASM syntax test 2020-10-07 18:00:33 +02:00
AWK Add AWK file for syntax tests 2020-09-30 19:50:19 +02:00
Bash Add a batgrep as Bash script syntax tests 2020-10-04 11:00:57 +02:00
Batch Don't add artificial newline to last line if --style=plain 2020-12-19 10:32:50 +01:00
BibTeX Added BibTeX syntax tests 2020-10-10 19:13:05 +02:00
C Add C file test 2020-10-05 09:06:47 +02:00
C-Sharp Add C-Sharp (C#) syntax highlighting test files 2020-10-05 07:15:09 +02:00
Clojure Don't add artificial newline to last line if --style=plain 2020-12-19 10:32:50 +01:00
CMake add CMake syntax highlighting test 2020-10-09 22:50:47 +02:00
Cpp Add Cpp file test 2020-10-05 09:01:34 +02:00
CpuInfo Add CpuInfo syntax test 2020-10-11 19:18:53 +03:00
Crystal Add sample Crystal file 2020-10-07 07:40:15 +02:00
CSS Add missing newline 2020-10-06 07:17:10 +02:00
CSV Add CSV syntax hightlighting test 2020-10-06 19:47:33 +02:00
D #1213 expanded D test file 2020-10-24 12:28:15 +02:00
Dart added test.dart 2020-10-05 18:53:35 +02:00
Diff Add Diff syntax highlight test 2020-10-08 12:50:09 +02:00
Dockerfile Don't add artificial newline to last line if --style=plain 2020-12-19 10:32:50 +01:00
DotENV feat: add syntax sample for dotEnv files 2020-10-17 17:40:51 +02:00
Elixir Added Elixir file example 2020-10-03 22:33:44 +02:00
Elm Add elm syntax regression test 2020-10-04 15:19:54 +02:00
Email Add Email example code 2020-10-01 22:58:30 +02:00
Erlang Added test file for Erlang. 2020-10-09 07:38:08 +02:00
EtcGroup Add test file for /etc/group 2020-10-24 12:26:41 +02:00
Fish add new syntax test files 2020-11-23 15:43:58 +01:00
Fstab Add syntax test for /etc/fstab 2020-09-20 21:43:18 +02:00
Git Attributes Don't add artificial newline to last line if --style=plain 2020-12-19 10:32:50 +01:00
Git Config Don't add artificial newline to last line if --style=plain 2020-12-19 10:32:50 +01:00
Git Ignore add LICENSE 2020-10-05 17:25:37 +02:00
GLSL add GLSL syntax highlighting test 2020-10-07 17:58:33 +02:00
Go Add link to original source 2020-10-04 11:25:11 +02:00
GraphQL Add GraphQl syntax test sample 2020-10-11 09:46:25 +02:00
Graphviz DOT Add Graphviz DOT example files 2020-10-24 12:25:09 +02:00
Groovy Add Groovy syntax test. 2020-10-07 07:38:52 +02:00
Haskell Haskell highligth test 2020-10-05 07:20:00 +02:00
Hosts Don't add artificial newline to last line if --style=plain 2020-12-19 10:32:50 +01:00
HTML Add HTML syntax test sample 2020-10-10 19:13:55 +02:00
INI Add syntax highlighting test file for INI (#1213) 2020-10-05 21:09:24 +02:00
Java Add Java file test 2020-10-05 13:56:43 +02:00
JavaScript Added a JavaScript test file 2020-10-05 17:26:13 +02:00
Jinja2 test: add Jinja2 syntax test file 2020-10-04 21:31:19 +02:00
JSON test: add newline to JSON syntax source file 2020-10-04 21:22:57 +02:00
Julia License attribution not required 2020-10-05 14:24:16 +02:00
Kotlin test: Kotlin syntax test file 2020-10-05 07:11:52 +02:00
Less Add Less file for syntax tests 2020-09-07 22:25:14 +02:00
Lisp Add Common Lisp syntax highlighting test files 2020-10-16 08:58:04 +02:00
Lua Add Lua syntax test. 2020-10-07 07:37:19 +02:00
Makefile Don't add artificial newline to last line if --style=plain 2020-12-19 10:32:50 +01:00
Manpage Add Manpage syntax regression test for select(2) 2020-10-17 16:46:18 +02:00
Markdown #1213 Added example Markdown file 2020-10-05 07:14:09 +02:00
MATLAB Add MATLAB syntax test file 2020-10-24 12:22:46 +02:00
MemInfo Add MemInfo syntax test 2020-10-11 19:19:11 +03:00
nginx Add fairly complex nginx config. 2020-10-24 14:10:51 +02:00
nim feat: add Nim syntax test file 2020-10-16 08:56:36 +02:00
Ninja Add Ninja highlight test 2020-10-30 19:14:51 +01:00
nix 1213: nix; added trailing new line 2020-10-25 21:03:30 +01:00
Objective-C add new syntax test files 2020-11-23 15:43:58 +01:00
Objective-C++ add new syntax test files 2020-11-23 15:43:58 +01:00
OCaml Add an OCaml file for syntax tests. 2020-10-04 11:16:15 +02:00
orgmode 1213: org mode highlight testing 2020-10-29 19:21:46 +01:00
Pascal pascal: add syntax highlight file 2020-10-06 07:44:38 +02:00
Passwd Add /etc/passwd syntax test file 2020-10-05 07:22:54 +02:00
Perl Add Perl test file 2020-10-14 07:45:42 +02:00
PHP Don't add artificial newline to last line if --style=plain 2020-12-19 10:32:50 +01:00
Plaintext Don't add artificial newline to last line if --style=plain 2020-12-19 10:32:50 +01:00
PowerShell Don't add artificial newline to last line if --style=plain 2020-12-19 10:32:50 +01:00
Protocol Buffer Add a protobuf syntax sample. 2020-10-04 21:32:09 +02:00
PureScript Add PureScript syntax test 2020-10-14 08:43:11 +02:00
Python Added Basic python test file 2020-10-03 22:32:59 +02:00
QML Add QML syntax test 2020-10-24 12:27:16 +02:00
R ADDED test file for R 2020-10-09 23:18:53 +02:00
Regular Expression add new syntax test files 2020-11-23 15:43:58 +01:00
RequirementsTXT Don't add artificial newline to last line if --style=plain 2020-12-19 10:32:50 +01:00
reStructuredText Don't add artificial newline to last line if --style=plain 2020-12-19 10:32:50 +01:00
Ruby Add a ruby source code syntax test with source and output 2020-10-04 15:15:34 +02:00
Ruby Haml Import syntax regression test for Ruby Haml 2020-11-01 09:46:54 +01:00
Ruby On Rails add new syntax test files 2020-11-23 15:43:58 +01:00
Rust Initial version of syntax regression tests 2020-08-03 15:59:53 +02:00
Sass feat: add syntax tests for sass 2020-10-17 16:41:11 +02:00
Scala fix: update original file in license 2020-10-04 13:26:05 +02:00
SCSS Replace SCSS example with unlicensed one 2020-10-06 06:51:51 +02:00
SLS Add Salt State (SLS) test file 2020-10-23 19:40:13 +02:00
SML Add an SML syntax test file. 2020-10-04 21:25:05 +02:00
SQL Add SQL syntax highlighting test 2020-10-05 23:39:01 +02:00
SSH Config Initial version of syntax regression tests 2020-08-03 15:59:53 +02:00
SSHD Config Add sshd_config syntax highlighting test 2020-11-01 09:38:03 +01:00
Svelte Add Svelte as a syntax 2020-10-29 19:33:09 +01:00
Swift Update test.swift 2020-10-09 23:22:30 +02:00
Tcl add new syntax test files 2020-11-23 15:43:58 +01:00
Terraform Add Terraform example file for Syntax Highlighting 2020-10-06 19:40:41 +02:00
TeX Add TeX syntax highlighting test files 2020-10-05 07:19:07 +02:00
Textile add new syntax test files 2020-11-23 15:43:58 +01:00
TOML Initial version of syntax regression tests 2020-08-03 15:59:53 +02:00
TypeScript Add texts indicating source to LICENSE.md 2020-10-04 15:25:39 +02:00
Vue Add tests for Vue component syntax 2020-10-24 12:25:55 +02:00
XML #1241 Added newline to end of example.xml 2020-10-05 09:02:56 +02:00
YAML Don't add artificial newline to last line if --style=plain 2020-12-19 10:32:50 +01:00