aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2023-06-09 08:59:28 +0200
committerGitHub <noreply@github.com>2023-06-09 08:59:28 +0200
commitf31dba93f921891159eb707b185517648df00d6b (patch)
treeebe77fda13f05fc82759a0164eecf129e67daeda /test
parentbe539f5fa8e2d7ad73f7f69941bd6ff13354e89c (diff)
downloadrneovim-f31dba93f921891159eb707b185517648df00d6b.tar.gz
rneovim-f31dba93f921891159eb707b185517648df00d6b.tar.bz2
rneovim-f31dba93f921891159eb707b185517648df00d6b.zip
vim-patch:9.0.1620: Nix files are not recognized from the hashbang line (#23961)
Problem: Nix files are not recognized from the hashbang line. Solution: Add a hashbang check. (issue vim/vim#12507) https://github.com/vim/vim/commit/19548c6a742d954ecd0b50b0680c37cc6ced7473 Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'test')
-rw-r--r--test/old/testdir/test_filetype.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim
index c0427c7b83..779de51785 100644
--- a/test/old/testdir/test_filetype.vim
+++ b/test/old/testdir/test_filetype.vim
@@ -773,6 +773,7 @@ let s:script_checks = {
\ 'expect': [['#!/path/expect']],
\ 'gnuplot': [['#!/path/gnuplot']],
\ 'make': [['#!/path/make']],
+ \ 'nix': [['#!/path/nix-shell']],
\ 'pike': [['#!/path/pike'],
\ ['#!/path/pike0'],
\ ['#!/path/pike9']],
@@ -819,6 +820,7 @@ let s:script_env_checks = {
\ 'scheme': [['#!/usr/bin/env VAR=val --ignore-environment scheme']],
\ 'python': [['#!/usr/bin/env VAR=val -S python -w -T']],
\ 'wml': [['#!/usr/bin/env VAR=val --split-string wml']],
+ \ 'nix': [['#!/usr/bin/env nix-shell']],
\ }
func Run_script_detection(test_dict)