diff options
author | Bram Moolenaar <Bram@vim.org> | 2023-06-08 21:27:13 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-06-08 21:27:13 +0100 |
commit | 19548c6a742d954ecd0b50b0680c37cc6ced7473 (patch) | |
tree | 0efd88f128a3b88ac0c164dda297ec25a2752cb2 /src | |
parent | 85ef2df075a189da8b767d7554caaed8077de868 (diff) |
patch 9.0.1620: Nix files are not recognized from the hashbang linev9.0.1620
Problem: Nix files are not recognized from the hashbang line.
Solution: Add a hashbang check. (issue #12507)
Diffstat (limited to 'src')
-rw-r--r-- | src/testdir/test_filetype.vim | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index d5e003848a..ae76969a5a 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -852,6 +852,7 @@ def s:GetScriptChecks(): dict<list<list<string>>> expect: [['#!/path/expect']], gnuplot: [['#!/path/gnuplot']], make: [['#!/path/make']], + nix: [['#!/path/nix-shell']], pike: [['#!/path/pike'], ['#!/path/pike0'], ['#!/path/pike9']], @@ -902,6 +903,7 @@ def s:GetScriptEnvChecks(): dict<list<list<string>>> 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']], } enddef diff --git a/src/version.c b/src/version.c index 90331ed8e2..bad9e5428c 100644 --- a/src/version.c +++ b/src/version.c @@ -696,6 +696,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1620, +/**/ 1619, /**/ 1618, |