forked from aniani/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: #14499 Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
55d4f3c006
commit
4b5cd7257e
@@ -1017,6 +1017,9 @@ au BufRead,BufNewFile *.hoon setf hoon
|
|||||||
" Tilde (must be before HTML)
|
" Tilde (must be before HTML)
|
||||||
au BufNewFile,BufRead *.t.html setf tilde
|
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)
|
" HTML (.shtml and .stm for server side)
|
||||||
au BufNewFile,BufRead *.html,*.htm,*.shtml,*.stm call dist#ft#FThtml()
|
au BufNewFile,BufRead *.html,*.htm,*.shtml,*.stm call dist#ft#FThtml()
|
||||||
au BufNewFile,BufRead *.cshtml setf html
|
au BufNewFile,BufRead *.cshtml setf html
|
||||||
|
@@ -155,7 +155,7 @@ def s:GetFilenameChecks(): dict<list<string>>
|
|||||||
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'],
|
||||||
|
@@ -704,6 +704,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
318,
|
||||||
/**/
|
/**/
|
||||||
317,
|
317,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user