summaryrefslogtreecommitdiffstats
path: root/runtime/filetype.vim
diff options
context:
space:
mode:
authorGaetan Lepage <gaetan@glepage.com>2023-05-10 22:01:55 +0100
committerBram Moolenaar <Bram@vim.org>2023-05-10 22:01:55 +0100
commit4ce1bda869e4ec0152d7dcbe1e491ceac5341d5e (patch)
tree349509e1ca04cb29840c2aa33b519a856567a7a4 /runtime/filetype.vim
parent411da64e77ef9d8edd1a5aa80fa5b9a4b159c93d (diff)
patch 9.0.1539: typst filetype is not recognizedv9.0.1539
Problem: Typst filetype is not recognized. Solution: Distinguish between sql and typst. (Gaetan Lepage, closes #12363)
Diffstat (limited to 'runtime/filetype.vim')
-rw-r--r--runtime/filetype.vim5
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 38db8a23b4..7618902fd5 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -2058,7 +2058,10 @@ au BufNewFile,BufRead *.spy,*.spi setf spyce
au BufNewFile,BufRead squid.conf setf squid
" SQL for Oracle Designer
-au BufNewFile,BufRead *.tyb,*.typ,*.tyc,*.pkb,*.pks setf sql
+au BufNewFile,BufRead *.tyb,*.tyc,*.pkb,*.pks setf sql
+
+" *.typ can be either SQL or Typst files
+au BufNewFile,BufRead *.typ call dist#ft#FTtyp()
" SQL
au BufNewFile,BufRead *.sql call dist#ft#SQL()