summaryrefslogtreecommitdiffstats
path: root/scripts/build
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-09-10 15:40:27 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-09-10 15:40:27 +0200
commit9243367ba376050621e4c05e8f0439742c1f0f82 (patch)
treeda72230c3a5258fe2be8c90ef0301ac1edd7d547 /scripts/build
parent1eed30b2af57538496943da09e298a6facc33002 (diff)
downloadvim-polyglot-4.10.0.tar.gz
vim-polyglot-4.10.0.zip
Automatically detect script filetype when typingv4.10.0
Diffstat (limited to 'scripts/build')
-rwxr-xr-xscripts/build4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/build b/scripts/build
index 03c005c4..982e0f3a 100755
--- a/scripts/build
+++ b/scripts/build
@@ -559,8 +559,10 @@ def generate_ftdetect(packages, heuristics)
let l:filetype = polyglot#Shebang()
if l:filetype != ""
exec "setf " . l:filetype
- return
+ return 1
endif
+
+ return 0
endfunc
let s:interpreters = {