mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
vim-patch:9.1.0591: filetype: *.wl files are not recognized
Problem: filetype: *.wl files are not recognized
Solution: Detect '*.wl' files as Mathematica package files
(Jonas Dujava)
closes: vim/vim#15269
c6d7dc0393
Co-authored-by: Jonas Dujava <jonas.dujava@gmail.com>
This commit is contained in:
@@ -711,6 +711,7 @@ local extension = {
|
|||||||
mixal = 'mix',
|
mixal = 'mix',
|
||||||
mm = detect.mm,
|
mm = detect.mm,
|
||||||
nb = 'mma',
|
nb = 'mma',
|
||||||
|
wl = 'mma',
|
||||||
mmp = 'mmp',
|
mmp = 'mmp',
|
||||||
mms = detect.mms,
|
mms = detect.mms,
|
||||||
DEF = 'modula2',
|
DEF = 'modula2',
|
||||||
|
@@ -471,7 +471,7 @@ func s:GetFilenameChecks() abort
|
|||||||
\ 'mgp': ['file.mgp'],
|
\ 'mgp': ['file.mgp'],
|
||||||
\ 'mib': ['file.mib', 'file.my'],
|
\ 'mib': ['file.mib', 'file.my'],
|
||||||
\ 'mix': ['file.mix', 'file.mixal'],
|
\ 'mix': ['file.mix', 'file.mixal'],
|
||||||
\ 'mma': ['file.nb'],
|
\ 'mma': ['file.nb', 'file.wl'],
|
||||||
\ 'mmp': ['file.mmp'],
|
\ 'mmp': ['file.mmp'],
|
||||||
\ 'modconf': ['/etc/modules.conf', '/etc/modules', '/etc/conf.modules', '/etc/modprobe.file', 'any/etc/conf.modules', 'any/etc/modprobe.file', 'any/etc/modules', 'any/etc/modules.conf'],
|
\ 'modconf': ['/etc/modules.conf', '/etc/modules', '/etc/conf.modules', '/etc/modprobe.file', 'any/etc/conf.modules', 'any/etc/modprobe.file', 'any/etc/modules', 'any/etc/modules.conf'],
|
||||||
\ 'modula3': ['file.m3', 'file.mg', 'file.i3', 'file.ig', 'file.lm3'],
|
\ 'modula3': ['file.m3', 'file.mg', 'file.i3', 'file.ig', 'file.lm3'],
|
||||||
|
Reference in New Issue
Block a user