From d656b1c0fe20bfaee38ad229f873c080e6e2c426 Mon Sep 17 00:00:00 2001 From: Colin Date: Tue, 4 Jul 2023 10:06:12 +0000 Subject: [PATCH] add whitespace tests --- corpus/annotation.txt | 39 ++++++++++++++++++++++++++------------- corpus/shebang.txt | 10 ++++++++++ 2 files changed, 36 insertions(+), 13 deletions(-) diff --git a/corpus/annotation.txt b/corpus/annotation.txt index 978e7ac..55c44cf 100644 --- a/corpus/annotation.txt +++ b/corpus/annotation.txt @@ -1,3 +1,29 @@ +================== +empty nix-shell +================== + +#!/usr/bin/env nix-shell +#!nix-shell +--- + +(source_file + (first_line) + (next_line + (annotation_line))) + +================== +whitespace in nix-shell +================== + +#!/usr/bin/env nix-shell +#! nix-shell +--- + +(source_file + (first_line) + (next_line + (annotation_line))) + ================== minimal nix-shell invocation with interpreter ================== @@ -88,19 +114,6 @@ order-independent (interpreter (sh_arg)))))) -================== -empty nix-shell -================== - -#!/usr/bin/env nix-shell -#!nix-shell ---- - -(source_file - (first_line) - (next_line - (annotation_line))) - ================== multiple annotation lines ================== diff --git a/corpus/shebang.txt b/corpus/shebang.txt index 0c783d0..a8f8cda 100644 --- a/corpus/shebang.txt +++ b/corpus/shebang.txt @@ -7,3 +7,13 @@ nix-shell shebang without any interpreter option (source_file (first_line)) + +================== +nix-shell shebang whitespace +================== + +#! /usr/bin/env nix-shell +--- + +(source_file + (first_line))