aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-04-13 18:49:36 +0200
committerChristian Clason <c.clason@uni-graz.at>2024-04-14 13:21:10 +0200
commit4ca6e08327496ed5efc3465c42464319302ba22a (patch)
treed1eda9b295c324e47e16115a99b916bb005d0e53 /runtime/lua
parent391200f19810512b09cf3e66f78f755f3825044f (diff)
downloadrneovim-4ca6e08327496ed5efc3465c42464319302ba22a.tar.gz
rneovim-4ca6e08327496ed5efc3465c42464319302ba22a.tar.bz2
rneovim-4ca6e08327496ed5efc3465c42464319302ba22a.zip
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 https://github.com/vim/vim/commit/4b5cd7257ee99384940d5210cf50298ff925924e Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Diffstat (limited to 'runtime/lua')
-rw-r--r--runtime/lua/vim/filetype.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua
index 0e06cf69e6..d23f4147e9 100644
--- a/runtime/lua/vim/filetype.lua
+++ b/runtime/lua/vim/filetype.lua
@@ -1295,6 +1295,8 @@ local filename = {
['/etc/defaults/cdrdao'] = 'cdrdaoconf',
['cfengine.conf'] = 'cfengine',
cgdbrc = 'cgdbrc',
+ ['init.trans'] = 'clojure',
+ ['.trans'] = 'clojure',
['CMakeLists.txt'] = 'cmake',
['.cling_history'] = 'cpp',
['.alias'] = detect.csh,
@@ -1738,6 +1740,7 @@ local pattern = {
},
['[cC]hange[lL]og.*'] = starsetf(detect.changelog),
['.*%.%.ch'] = 'chill',
+ ['.*/etc/translate%-shell'] = 'clojure',
['.*%.cmake%.in'] = 'cmake',
-- */cmus/rc and */.cmus/rc
['.*/%.?cmus/rc'] = 'cmusrc',