Skip to content

Commit 7324528

Browse files
committed
Fix detecting shell filetypes, closes #603
1 parent 0a2f2cc commit 7324528

File tree

4 files changed

+56
-54
lines changed

4 files changed

+56
-54
lines changed

after/syntax/c.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cpp-modern') ==
77
" http://www.vim.org/scripts/script.php?script_id=3064
88
" Maintainer: bfrg <bfrg@users.noreply.github.com>
99
" Website: https://github.com/bfrg/vim-cpp-modern
10-
" Last Change: Oct 22, 2020
10+
" Last Change: Oct 23, 2020
1111
"
1212
" Extended C syntax highlighting including highlighting of user-defined
1313
" functions.
@@ -63,6 +63,7 @@ hi def link cAnsiName Identifier
6363
if get(g:, 'cpp_simple_highlight', 0)
6464
hi link cStorageClass Statement
6565
hi link cStructure Statement
66+
hi link cTypedef Statement
6667
hi link cLabel Statement
6768
endif
6869

extras/filetype.vim

Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ endfunc
5454
au BufNewFile,BufRead $VIMRUNTIME/doc/*.txt setf help
5555

5656
" Abaqus or Trasys
57-
au BufNewFile,BufRead *.inp call dist#ft#Check_inp()
57+
au BufNewFile,BufRead *.inp call polyglot#ft#Check_inp()
5858

5959
" 8th (Firth-derivative)
6060
au BufNewFile,BufRead *.8th setf 8th
@@ -160,7 +160,7 @@ au BufNewFile,BufRead */boot/grub/menu.lst,*/boot/grub/grub.conf,*/etc/grub.conf
160160

161161
" Assembly (all kinds)
162162
" *.lst is not pure assembly, it has two extra columns (address, byte codes)
163-
au BufNewFile,BufRead *.asm,*.[sS],*.[aA],*.mac,*.lst call dist#ft#FTasm()
163+
au BufNewFile,BufRead *.asm,*.[sS],*.[aA],*.mac,*.lst call polyglot#ft#FTasm()
164164

165165
" Macro (VAX)
166166
au BufNewFile,BufRead *.mar setf vmasm
@@ -190,7 +190,7 @@ au BufNewFile,BufRead *.awk,*.gawk setf awk
190190
au BufNewFile,BufRead *.mch,*.ref,*.imp setf b
191191

192192
" BASIC or Visual Basic
193-
au BufNewFile,BufRead *.bas call dist#ft#FTVB("basic")
193+
au BufNewFile,BufRead *.bas call polyglot#ft#FTVB("basic")
194194

195195
" Visual Basic Script (close to Visual Basic) or Visual Basic .NET
196196
au BufNewFile,BufRead *.vb,*.vbs,*.dsm,*.ctl setf vb
@@ -208,7 +208,7 @@ au BufNewFile,BufRead *.cmd
208208
\ if getline(1) =~ '^/\*' | setf rexx | else | setf dosbatch | endif
209209

210210
" Batch file for 4DOS
211-
au BufNewFile,BufRead *.btm call dist#ft#FTbtm()
211+
au BufNewFile,BufRead *.btm call polyglot#ft#FTbtm()
212212

213213
" BC calculator
214214
au BufNewFile,BufRead *.bc setf bc
@@ -228,7 +228,7 @@ au BufNewFile,BufRead named*.conf,rndc*.conf,rndc*.key setf named
228228

229229
" BIND zone
230230
au BufNewFile,BufRead named.root setf bindzone
231-
au BufNewFile,BufRead *.db call dist#ft#BindzoneCheck('')
231+
au BufNewFile,BufRead *.db call polyglot#ft#BindzoneCheck('')
232232

233233
" Blank
234234
au BufNewFile,BufRead *.bl setf blank
@@ -247,7 +247,7 @@ if has("fname_case")
247247
endif
248248

249249
" C or lpc
250-
au BufNewFile,BufRead *.c call dist#ft#FTlpc()
250+
au BufNewFile,BufRead *.c call polyglot#ft#FTlpc()
251251
au BufNewFile,BufRead *.lpc,*.ulpc setf lpc
252252

253253
" Calendar
@@ -302,7 +302,7 @@ endif
302302
" .h files can be C, Ch C++, ObjC or ObjC++.
303303
" Set c_syntax_for_h if you want C, ch_syntax_for_h if you want Ch. ObjC is
304304
" detected automatically.
305-
au BufNewFile,BufRead *.h call dist#ft#FTheader()
305+
au BufNewFile,BufRead *.h call polyglot#ft#FTheader()
306306

307307
" Ch (CHscript)
308308
au BufNewFile,BufRead *.chf setf ch
@@ -336,7 +336,7 @@ au BufNewFile,BufRead NEWS
336336
au BufNewFile,BufRead *..ch setf chill
337337

338338
" Changes for WEB and CWEB or CHILL
339-
au BufNewFile,BufRead *.ch call dist#ft#FTchange()
339+
au BufNewFile,BufRead *.ch call polyglot#ft#FTchange()
340340

341341
" ChordPro
342342
au BufNewFile,BufRead *.chopro,*.crd,*.cho,*.crdpro,*.chordpro setf chordpro
@@ -348,7 +348,7 @@ au BufNewFile,BufRead *.dcl,*.icl setf clean
348348
au BufNewFile,BufRead *.eni setf cl
349349

350350
" Clever or dtd
351-
au BufNewFile,BufRead *.ent call dist#ft#FTent()
351+
au BufNewFile,BufRead *.ent call polyglot#ft#FTent()
352352

353353
" Clipper (or FoxPro; could also be eviews)
354354
au BufNewFile,BufRead *.prg
@@ -403,9 +403,9 @@ au BufNewFile,BufRead *enlightenment/*.cfg setf c
403403
au BufNewFile,BufRead *Eterm/*.cfg setf eterm
404404

405405
" Euphoria 3 or 4
406-
au BufNewFile,BufRead *.eu,*.ew,*.ex,*.exu,*.exw call dist#ft#EuphoriaCheck()
406+
au BufNewFile,BufRead *.eu,*.ew,*.ex,*.exu,*.exw call polyglot#ft#EuphoriaCheck()
407407
if has("fname_case")
408-
au BufNewFile,BufRead *.EU,*.EW,*.EX,*.EXU,*.EXW call dist#ft#EuphoriaCheck()
408+
au BufNewFile,BufRead *.EU,*.EW,*.EX,*.EXU,*.EXW call polyglot#ft#EuphoriaCheck()
409409
endif
410410

411411
" Lynx config files
@@ -462,7 +462,7 @@ au BufNewFile,BufRead */etc/dnsmasq.conf setf dnsmasq
462462
au BufNewFile,BufRead *.desc setf desc
463463

464464
" the D language or dtrace
465-
au BufNewFile,BufRead *.d call dist#ft#DtraceCheck()
465+
au BufNewFile,BufRead *.d call polyglot#ft#DtraceCheck()
466466

467467
" Desktop files
468468
au BufNewFile,BufRead *.desktop,*.directory setf desktop
@@ -494,7 +494,7 @@ au BufNewFile,BufRead *.rul
494494
\ endif
495495

496496
" DCL (Digital Command Language - vms) or DNS zone file
497-
au BufNewFile,BufRead *.com call dist#ft#BindzoneCheck('dcl')
497+
au BufNewFile,BufRead *.com call polyglot#ft#BindzoneCheck('dcl')
498498

499499
" DOT
500500
au BufNewFile,BufRead *.dot,*.gv setf dot
@@ -542,7 +542,7 @@ au BufNewFile,BufRead .editorconfig setf dosini
542542
au BufNewFile,BufRead *.ecd setf ecd
543543

544544
" Eiffel or Specman or Euphoria
545-
au BufNewFile,BufRead *.e,*.E call dist#ft#FTe()
545+
au BufNewFile,BufRead *.e,*.E call polyglot#ft#FTe()
546546

547547
" Elinks configuration
548548
au BufNewFile,BufRead elinks.conf setf elinks
@@ -720,7 +720,7 @@ au BufRead,BufNewFile *.hws setf hollywood
720720
au BufNewFile,BufRead *.t.html setf tilde
721721

722722
" HTML (.shtml and .stm for server side)
723-
au BufNewFile,BufRead *.html,*.htm,*.shtml,*.stm call dist#ft#FThtml()
723+
au BufNewFile,BufRead *.html,*.htm,*.shtml,*.stm call polyglot#ft#FThtml()
724724

725725
" HTML with Ruby - eRuby
726726
au BufNewFile,BufRead *.erb,*.rhtml setf eruby
@@ -747,7 +747,7 @@ au BufNewFile,BufRead *.htt,*.htb setf httest
747747
au BufNewFile,BufRead *.icn setf icon
748748

749749
" IDL (Interface Description Language)
750-
au BufNewFile,BufRead *.idl call dist#ft#FTidl()
750+
au BufNewFile,BufRead *.idl call polyglot#ft#FTidl()
751751

752752
" Microsoft IDL (Interface Description Language) Also *.idl
753753
" MOF = WMI (Windows Management Instrumentation) Managed Object Format
@@ -758,10 +758,10 @@ au BufNewFile,BufRead */.icewm/menu setf icemenu
758758

759759
" Indent profile (must come before IDL *.pro!)
760760
au BufNewFile,BufRead .indent.pro setf indent
761-
au BufNewFile,BufRead indent.pro call dist#ft#ProtoCheck('indent')
761+
au BufNewFile,BufRead indent.pro call polyglot#ft#ProtoCheck('indent')
762762

763763
" IDL (Interactive Data Language)
764-
au BufNewFile,BufRead *.pro call dist#ft#ProtoCheck('idlang')
764+
au BufNewFile,BufRead *.pro call polyglot#ft#ProtoCheck('idlang')
765765

766766
" Indent RC
767767
au BufNewFile,BufRead indentrc setf indent
@@ -981,7 +981,7 @@ au BufNewFile,BufRead *.markdown,*.mdown,*.mkd,*.mkdn,*.mdwn,*.md setf markdown
981981
au BufNewFile,BufRead *.mason,*.mhtml,*.comp setf mason
982982

983983
" Mathematica, Matlab, Murphi or Objective C
984-
au BufNewFile,BufRead *.m call dist#ft#FTm()
984+
au BufNewFile,BufRead *.m call polyglot#ft#FTm()
985985

986986
" Mathematica notebook
987987
au BufNewFile,BufRead *.nb setf mma
@@ -1014,7 +1014,7 @@ au BufNewFile,BufRead *.mgl setf mgl
10141014
au BufNewFile,BufRead *.mix,*.mixal setf mix
10151015

10161016
" MMIX or VMS makefile
1017-
au BufNewFile,BufRead *.mms call dist#ft#FTmms()
1017+
au BufNewFile,BufRead *.mms call polyglot#ft#FTmms()
10181018

10191019
" Symbian meta-makefile definition (MMP)
10201020
au BufNewFile,BufRead *.mmp setf mmp
@@ -1105,10 +1105,10 @@ au BufNewFile,BufRead *.me
11051105
\ setf nroff |
11061106
\ endif
11071107
au BufNewFile,BufRead *.tr,*.nr,*.roff,*.tmac,*.mom setf nroff
1108-
au BufNewFile,BufRead *.[1-9] call dist#ft#FTnroff()
1108+
au BufNewFile,BufRead *.[1-9] call polyglot#ft#FTnroff()
11091109

11101110
" Nroff or Objective C++
1111-
au BufNewFile,BufRead *.mm call dist#ft#FTmm()
1111+
au BufNewFile,BufRead *.mm call polyglot#ft#FTmm()
11121112

11131113
" Not Quite C
11141114
au BufNewFile,BufRead *.nqc setf nqc
@@ -1175,9 +1175,9 @@ au BufNewFile,BufRead *.pcmk setf pcmk
11751175

11761176
" Perl
11771177
if has("fname_case")
1178-
au BufNewFile,BufRead *.pl,*.PL call dist#ft#FTpl()
1178+
au BufNewFile,BufRead *.pl,*.PL call polyglot#ft#FTpl()
11791179
else
1180-
au BufNewFile,BufRead *.pl call dist#ft#FTpl()
1180+
au BufNewFile,BufRead *.pl call polyglot#ft#FTpl()
11811181
endif
11821182
au BufNewFile,BufRead *.plx,*.al,*.psgi setf perl
11831183
au BufNewFile,BufRead *.p6,*.pm6,*.pl6 setf perl6
@@ -1253,7 +1253,7 @@ au BufNewFile,BufRead *.pov setf pov
12531253
au BufNewFile,BufRead .povrayrc setf povini
12541254

12551255
" Povray, PHP or assembly
1256-
au BufNewFile,BufRead *.inc call dist#ft#FTinc()
1256+
au BufNewFile,BufRead *.inc call polyglot#ft#FTinc()
12571257

12581258
" Printcap and Termcap
12591259
au BufNewFile,BufRead *printcap
@@ -1282,13 +1282,13 @@ au BufNewFile,BufRead *.action setf privoxy
12821282
au BufNewFile,BufRead .procmail,.procmailrc setf procmail
12831283

12841284
" Progress or CWEB
1285-
au BufNewFile,BufRead *.w call dist#ft#FTprogress_cweb()
1285+
au BufNewFile,BufRead *.w call polyglot#ft#FTprogress_cweb()
12861286

12871287
" Progress or assembly
1288-
au BufNewFile,BufRead *.i call dist#ft#FTprogress_asm()
1288+
au BufNewFile,BufRead *.i call polyglot#ft#FTprogress_asm()
12891289

12901290
" Progress or Pascal
1291-
au BufNewFile,BufRead *.p call dist#ft#FTprogress_pascal()
1291+
au BufNewFile,BufRead *.p call polyglot#ft#FTprogress_pascal()
12921292

12931293
" Software Distributor Product Specification File (POSIX 1387.2-1995)
12941294
au BufNewFile,BufRead *.psf setf psf
@@ -1371,7 +1371,7 @@ else
13711371
endif
13721372

13731373
" Rexx, Rebol or R
1374-
au BufNewFile,BufRead *.r,*.R call dist#ft#FTr()
1374+
au BufNewFile,BufRead *.r,*.R call polyglot#ft#FTr()
13751375

13761376
" Remind
13771377
au BufNewFile,BufRead .reminders,*.remind,*.rem setf remind
@@ -1467,7 +1467,7 @@ au BufNewFile,BufRead *.siv,*.sieve setf sieve
14671467
au BufNewFile,BufRead sendmail.cf setf sm
14681468

14691469
" Sendmail .mc files are actually m4. Could also be MS Message text file.
1470-
au BufNewFile,BufRead *.mc call dist#ft#McSetf()
1470+
au BufNewFile,BufRead *.mc call polyglot#ft#McSetf()
14711471

14721472
" Services
14731473
au BufNewFile,BufRead */etc/services setf services
@@ -1508,25 +1508,25 @@ au BufNewFile,BufRead catalog setf catalog
15081508
" Shell scripts (sh, ksh, bash, bash2, csh); Allow .profile_foo etc.
15091509
" Gentoo ebuilds and Arch Linux PKGBUILDs are actually bash scripts
15101510
" NOTE: Patterns ending in a star are further down, these have lower priority.
1511-
au BufNewFile,BufRead .bashrc,bashrc,bash.bashrc,.bash[_-]profile,.bash[_-]logout,.bash[_-]aliases,bash-fc[-.],*.bash,*/{,.}bash[_-]completion{,.d,.sh}{,/*},*.ebuild,*.eclass,PKGBUILD call dist#ft#SetFileTypeSH("bash")
1512-
au BufNewFile,BufRead .kshrc,*.ksh call dist#ft#SetFileTypeSH("ksh")
1513-
au BufNewFile,BufRead */etc/profile,.profile,*.sh,*.env call dist#ft#SetFileTypeSH(getline(1))
1511+
au BufNewFile,BufRead .bashrc,bashrc,bash.bashrc,.bash[_-]profile,.bash[_-]logout,.bash[_-]aliases,bash-fc[-.],*.bash,*/{,.}bash[_-]completion{,.d,.sh}{,/*},*.ebuild,*.eclass,PKGBUILD call polyglot#ft#SetFileTypeSH("bash")
1512+
au BufNewFile,BufRead .kshrc,*.ksh call polyglot#ft#SetFileTypeSH("ksh")
1513+
au BufNewFile,BufRead */etc/profile,.profile,*.sh,*.env call polyglot#ft#SetFileTypeSH(getline(1))
15141514

15151515

15161516
" Shell script (Arch Linux) or PHP file (Drupal)
15171517
au BufNewFile,BufRead *.install
15181518
\ if getline(1) =~ '<?php' |
15191519
\ setf php |
15201520
\ else |
1521-
\ call dist#ft#SetFileTypeSH("bash") |
1521+
\ call polyglot#ft#SetFileTypeSH("bash") |
15221522
\ endif
15231523

15241524
" tcsh scripts (patterns ending in a star further below)
1525-
au BufNewFile,BufRead .tcshrc,*.tcsh,tcsh.tcshrc,tcsh.login call dist#ft#SetFileTypeShell("tcsh")
1525+
au BufNewFile,BufRead .tcshrc,*.tcsh,tcsh.tcshrc,tcsh.login call polyglot#ft#SetFileTypeShell("tcsh")
15261526

15271527
" csh scripts, but might also be tcsh scripts (on some systems csh is tcsh)
15281528
" (patterns ending in a start further below)
1529-
au BufNewFile,BufRead .login,.cshrc,csh.cshrc,csh.login,csh.logout,*.csh,.alias call dist#ft#CSH()
1529+
au BufNewFile,BufRead .login,.cshrc,csh.cshrc,csh.login,csh.logout,*.csh,.alias call polyglot#ft#CSH()
15301530

15311531
" Z-Shell script (patterns ending in a star further below)
15321532
au BufNewFile,BufRead .zprofile,*/etc/zprofile,.zfbfmarks setf zsh
@@ -1597,7 +1597,7 @@ au BufNewFile,BufRead *.mib,*.my setf mib
15971597

15981598
" Snort Configuration
15991599
au BufNewFile,BufRead *.hog,snort.conf,vision.conf setf hog
1600-
au BufNewFile,BufRead *.rules call dist#ft#FTRules()
1600+
au BufNewFile,BufRead *.rules call polyglot#ft#FTRules()
16011601

16021602
" Spec (Linux RPM)
16031603
au BufNewFile,BufRead *.spec setf spec
@@ -1621,7 +1621,7 @@ au BufNewFile,BufRead squid.conf setf squid
16211621
au BufNewFile,BufRead *.tyb,*.typ,*.tyc,*.pkb,*.pks setf sql
16221622

16231623
" SQL
1624-
au BufNewFile,BufRead *.sql call dist#ft#SQL()
1624+
au BufNewFile,BufRead *.sql call polyglot#ft#SQL()
16251625

16261626
" SQLJ
16271627
au BufNewFile,BufRead *.sqlj setf sqlj
@@ -1688,7 +1688,7 @@ au BufNewFile,BufRead *.svg setf svg
16881688

16891689
" Tads (or Nroff or Perl test file)
16901690
au BufNewFile,BufRead *.t
1691-
\ if !dist#ft#FTnroff() && !dist#ft#FTperl() | setf tads | endif
1691+
\ if !polyglot#ft#FTnroff() && !polyglot#ft#FTperl() | setf tads | endif
16921692

16931693
" Tags
16941694
au BufNewFile,BufRead tags setf tags
@@ -1717,7 +1717,7 @@ au BufNewFile,BufRead *.ti setf terminfo
17171717

17181718
" TeX
17191719
au BufNewFile,BufRead *.latex,*.sty,*.dtx,*.ltx,*.bbl setf tex
1720-
au BufNewFile,BufRead *.tex call dist#ft#FTtex()
1720+
au BufNewFile,BufRead *.tex call polyglot#ft#FTtex()
17211721

17221722
" ConTeXt
17231723
au BufNewFile,BufRead *.mkii,*.mkiv,*.mkvi setf context
@@ -1820,7 +1820,7 @@ au BufRead,BufNewFile *.hw,*.module,*.pkg
18201820
\ endif
18211821

18221822
" Visual Basic (also uses *.bas) or FORM
1823-
au BufNewFile,BufRead *.frm call dist#ft#FTVB("form")
1823+
au BufNewFile,BufRead *.frm call polyglot#ft#FTVB("form")
18241824

18251825
" SaxBasic is close to Visual Basic
18261826
au BufNewFile,BufRead *.sba setf vb
@@ -1916,10 +1916,10 @@ au BufNewFile,BufRead .Xdefaults,.Xpdefaults,.Xresources,xdm-config,*.ad setf xd
19161916
" Xmath
19171917
au BufNewFile,BufRead *.msc,*.msf setf xmath
19181918
au BufNewFile,BufRead *.ms
1919-
\ if !dist#ft#FTnroff() | setf xmath | endif
1919+
\ if !polyglot#ft#FTnroff() | setf xmath | endif
19201920

19211921
" XML specific variants: docbk and xbl
1922-
au BufNewFile,BufRead *.xml call dist#ft#FTxml()
1922+
au BufNewFile,BufRead *.xml call polyglot#ft#FTxml()
19231923

19241924
" XMI (holding UML models) is also XML
19251925
au BufNewFile,BufRead *.xmi setf xml
@@ -1966,7 +1966,7 @@ au BufNewFile,BufRead *.xsl,*.xslt setf xslt
19661966
au BufNewFile,BufRead *.yy,*.yxx,*.y++ setf yacc
19671967

19681968
" Yacc or racc
1969-
au BufNewFile,BufRead *.y call dist#ft#FTy()
1969+
au BufNewFile,BufRead *.y call polyglot#ft#FTy()
19701970

19711971
" Yaml
19721972
au BufNewFile,BufRead *.yaml,*.yml setf yaml
@@ -1985,9 +1985,9 @@ au BufNewFile,BufRead *.zut setf zimbutempl
19851985
" Zope
19861986
" dtml (zope dynamic template markup language), pt (zope page template),
19871987
" cpt (zope form controller page template)
1988-
au BufNewFile,BufRead *.dtml,*.pt,*.cpt call dist#ft#FThtml()
1988+
au BufNewFile,BufRead *.dtml,*.pt,*.cpt call polyglot#ft#FThtml()
19891989
" zsql (zope sql method)
1990-
au BufNewFile,BufRead *.zsql call dist#ft#SQL()
1990+
au BufNewFile,BufRead *.zsql call polyglot#ft#SQL()
19911991

19921992
" Z80 assembler asz80
19931993
au BufNewFile,BufRead *.z8a setf z8a
@@ -2152,7 +2152,7 @@ au BufNewFile,BufRead *termcap*
21522152

21532153
" ReDIF
21542154
" Only used when the .rdf file was not detected to be XML.
2155-
au BufRead,BufNewFile *.rdf call dist#ft#Redif()
2155+
au BufRead,BufNewFile *.rdf call polyglot#ft#Redif()
21562156

21572157
" Remind
21582158
au BufNewFile,BufRead .reminders* call s:StarSetf('remind')
@@ -2161,15 +2161,15 @@ au BufNewFile,BufRead .reminders* call s:StarSetf('remind')
21612161
au BufNewFile,BufRead sgml.catalog* call s:StarSetf('catalog')
21622162

21632163
" Shell scripts ending in a star
2164-
au BufNewFile,BufRead .bashrc*,.bash[_-]profile*,.bash[_-]logout*,.bash[_-]aliases*,bash-fc[-.]*,,PKGBUILD* call dist#ft#SetFileTypeSH("bash")
2165-
au BufNewFile,BufRead .kshrc* call dist#ft#SetFileTypeSH("ksh")
2166-
au BufNewFile,BufRead .profile* call dist#ft#SetFileTypeSH(getline(1))
2164+
au BufNewFile,BufRead .bashrc*,.bash[_-]profile*,.bash[_-]logout*,.bash[_-]aliases*,bash-fc[-.]*,,PKGBUILD* call polyglot#ft#SetFileTypeSH("bash")
2165+
au BufNewFile,BufRead .kshrc* call polyglot#ft#SetFileTypeSH("ksh")
2166+
au BufNewFile,BufRead .profile* call polyglot#ft#SetFileTypeSH(getline(1))
21672167

21682168
" tcsh scripts ending in a star
2169-
au BufNewFile,BufRead .tcshrc* call dist#ft#SetFileTypeShell("tcsh")
2169+
au BufNewFile,BufRead .tcshrc* call polyglot#ft#SetFileTypeShell("tcsh")
21702170

21712171
" csh scripts ending in a star
2172-
au BufNewFile,BufRead .login*,.cshrc* call dist#ft#CSH()
2172+
au BufNewFile,BufRead .login*,.cshrc* call polyglot#ft#CSH()
21732173

21742174
" VHDL
21752175
au BufNewFile,BufRead *.vhdl_[0-9]* call s:StarSetf('vhdl')

0 commit comments

Comments
 (0)