mirror of
https://github.com/zoriya/vim.git
synced 2026-06-03 04:03:06 +00:00
patch 8.2.2384: turtle filetype not recognized
Problem: Turtle filetype not recognized. Solution: Add a rule to detect turtle files. (closes #7722)
This commit is contained in:
@@ -1731,8 +1731,13 @@ au BufNewFile,BufRead *.tli setf tli
|
||||
" Telix Salt
|
||||
au BufNewFile,BufRead *.slt setf tsalt
|
||||
|
||||
" Tera Term Language
|
||||
au BufRead,BufNewFile *.ttl setf teraterm
|
||||
" Tera Term Language or Turtle
|
||||
au BufRead,BufNewFile *.ttl
|
||||
\ if getline(1) =~ '^@\?\(prefix\|base\)' |
|
||||
\ setf turtle |
|
||||
\ else |
|
||||
\ setf teraterm |
|
||||
\ endif
|
||||
|
||||
" Terminfo
|
||||
au BufNewFile,BufRead *.ti setf terminfo
|
||||
|
||||
Reference in New Issue
Block a user