+1251
-81
lines changedFilter options
+1251
-81
lines changed Original file line number Diff line number Diff line change
@@ -7,4 +7,4 @@ test:
7
7
@ scripts/test
8
8
9
9
dev:
10
-
@ find scripts . -type f -depth 1 | DEV=1 entr bash -c 'make && make test'
10
+
@ find scripts autoload/polyglot ftdetect tests . -type f -depth 1 | DEV=1 entr bash -c 'make && make test'
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
1
+
" Line continuation is used here, remove 'C' from 'cpoptions'
2
+
let s:cpo_save = &cpo
3
+
set cpo&vim
4
+
5
+
func! s:WritePostOnce(fn)
6
+
exe 'au! filetypedetect BufWritePost <buffer> ++once ' . a:fn
7
+
endfunc
8
+
1
9
" DO NOT EDIT CODE BELOW, IT IS GENERATED WITH MAKEFILE
2
10
3
11
func! polyglot#detect#Inp()
@@ -185,7 +193,8 @@ func! polyglot#detect#Pm()
185
193
let &ft = g:filetype_pm | return
186
194
endif
187
195
if polyglot#shebang#Detect() | return | endif
188
-
set ft=perl | au BufWritePost <buffer> ++once call polyglot#detect#Pm()
196
+
setf perl
197
+
call s:WritePostOnce('call polyglot#detect#Pm()')
189
198
return
190
199
endfunc
191
200
@@ -207,7 +216,8 @@ func! polyglot#detect#Pl()
207
216
let &ft = g:filetype_pl | return
208
217
endif
209
218
if polyglot#shebang#Detect() | return | endif
210
-
set ft=perl | au BufWritePost <buffer> ++once call polyglot#detect#Pl()
219
+
setf perl
220
+
call s:WritePostOnce('call polyglot#detect#Pl()')
211
221
return
212
222
endfunc
213
223
@@ -231,7 +241,8 @@ func! polyglot#detect#T()
231
241
let &ft = g:filetype_t | return
232
242
endif
233
243
if polyglot#shebang#Detect() | return | endif
234
-
set ft=perl | au BufWritePost <buffer> ++once call polyglot#detect#T()
244
+
setf perl
245
+
call s:WritePostOnce('call polyglot#detect#T()')
235
246
return
236
247
endfunc
237
248
@@ -259,6 +270,12 @@ func! polyglot#detect#Html()
259
270
set ft=xhtml | return
260
271
endif
261
272
endfor
262
-
set ft=html | au BufWritePost <buffer> ++once call polyglot#detect#Html()
273
+
setf html
274
+
call s:WritePostOnce('call polyglot#detect#Html()')
263
275
return
264
276
endfunc
277
+
278
+
" DO NOT EDIT CODE ABOVE, IT IS GENERATED WITH MAKEFILE
279
+
280
+
let &cpo = s:cpo_save
281
+
unlet s:cpo_save
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4