summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorWu, Zhenyu <wuzhenyu@ustc.edu>2024-04-13 18:28:28 +0200
committerChristian Brabandt <cb@256bit.org>2024-04-13 18:28:28 +0200
commit4b5cd7257ee99384940d5210cf50298ff925924e (patch)
tree221f94ccb0df4005e168484e084efe3e7650a810 /runtime
parent55d4f3c006689945599589a90036923b1752754f (diff)
patch 9.1.0318: filetype: translate shell config files are not recognizedv9.1.0318
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: #14499 Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu> Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime')
-rw-r--r--runtime/filetype.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 96ecb1aaae..bdf2d6c6fe 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -1017,6 +1017,9 @@ au BufRead,BufNewFile *.hoon setf hoon
" Tilde (must be before HTML)
au BufNewFile,BufRead *.t.html setf tilde
+" Translate shell
+au BufNewFile,BufRead init.trans,*/etc/translate-shell,.trans setf clojure
+
" HTML (.shtml and .stm for server side)
au BufNewFile,BufRead *.html,*.htm,*.shtml,*.stm call dist#ft#FThtml()
au BufNewFile,BufRead *.cshtml setf html