mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:9.1.0318: filetype: translate shell config files are not recognized
Problem: filetype: translate shell config files are not recognized
Solution: Detect 'init.trans', 'translate-shell' and '.trans' files as
clojure (Wu, Zhenyu)
See: https://github.com/soimort/translate-shell/wiki/Configuration
closes: vim/vim#14499
4b5cd7257e
Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
This commit is contained in:
parent
391200f198
commit
4ca6e08327
@ -1295,6 +1295,8 @@ local filename = {
|
|||||||
['/etc/defaults/cdrdao'] = 'cdrdaoconf',
|
['/etc/defaults/cdrdao'] = 'cdrdaoconf',
|
||||||
['cfengine.conf'] = 'cfengine',
|
['cfengine.conf'] = 'cfengine',
|
||||||
cgdbrc = 'cgdbrc',
|
cgdbrc = 'cgdbrc',
|
||||||
|
['init.trans'] = 'clojure',
|
||||||
|
['.trans'] = 'clojure',
|
||||||
['CMakeLists.txt'] = 'cmake',
|
['CMakeLists.txt'] = 'cmake',
|
||||||
['.cling_history'] = 'cpp',
|
['.cling_history'] = 'cpp',
|
||||||
['.alias'] = detect.csh,
|
['.alias'] = detect.csh,
|
||||||
@ -1738,6 +1740,7 @@ local pattern = {
|
|||||||
},
|
},
|
||||||
['[cC]hange[lL]og.*'] = starsetf(detect.changelog),
|
['[cC]hange[lL]og.*'] = starsetf(detect.changelog),
|
||||||
['.*%.%.ch'] = 'chill',
|
['.*%.%.ch'] = 'chill',
|
||||||
|
['.*/etc/translate%-shell'] = 'clojure',
|
||||||
['.*%.cmake%.in'] = 'cmake',
|
['.*%.cmake%.in'] = 'cmake',
|
||||||
-- */cmus/rc and */.cmus/rc
|
-- */cmus/rc and */.cmus/rc
|
||||||
['.*/%.?cmus/rc'] = 'cmusrc',
|
['.*/%.?cmus/rc'] = 'cmusrc',
|
||||||
|
@ -156,7 +156,7 @@ func s:GetFilenameChecks() abort
|
|||||||
\ 'chuck': ['file.ck'],
|
\ 'chuck': ['file.ck'],
|
||||||
\ 'cl': ['file.eni'],
|
\ 'cl': ['file.eni'],
|
||||||
\ 'clean': ['file.dcl', 'file.icl'],
|
\ 'clean': ['file.dcl', 'file.icl'],
|
||||||
\ 'clojure': ['file.clj', 'file.cljs', 'file.cljx', 'file.cljc'],
|
\ 'clojure': ['file.clj', 'file.cljs', 'file.cljx', 'file.cljc', 'init.trans', 'any/etc/translate-shell', '.trans'],
|
||||||
\ 'cmake': ['CMakeLists.txt', 'file.cmake', 'file.cmake.in'],
|
\ 'cmake': ['CMakeLists.txt', 'file.cmake', 'file.cmake.in'],
|
||||||
\ 'cmod': ['file.cmod'],
|
\ 'cmod': ['file.cmod'],
|
||||||
\ 'cmusrc': ['any/.cmus/autosave', 'any/.cmus/rc', 'any/.cmus/command-history', 'any/.cmus/file.theme', 'any/cmus/rc', 'any/cmus/file.theme', '/.cmus/autosave', '/.cmus/command-history', '/.cmus/file.theme', '/.cmus/rc', '/cmus/file.theme', '/cmus/rc'],
|
\ 'cmusrc': ['any/.cmus/autosave', 'any/.cmus/rc', 'any/.cmus/command-history', 'any/.cmus/file.theme', 'any/cmus/rc', 'any/cmus/file.theme', '/.cmus/autosave', '/.cmus/command-history', '/.cmus/file.theme', '/.cmus/rc', '/cmus/file.theme', '/cmus/rc'],
|
||||||
|
Loading…
Reference in New Issue
Block a user