]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.2094: filetype: tiger files are not recognized v9.1.2094
authorChristian Clason <c.clason@uni-graz.at>
Sun, 18 Jan 2026 21:03:02 +0000 (21:03 +0000)
committerChristian Brabandt <cb@256bit.org>
Sun, 18 Jan 2026 21:03:02 +0000 (21:03 +0000)
Problem:  filetype: tiger files are not recognized
Solution: Detect *.tig files as tiger filetype
          (Christian Clason).

Reference:
- https://www.cs.princeton.edu/~appel/modern/

closes: #19202

Signed-off-by: Christian Clason <c.clason@uni-graz.at>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/autoload/dist/ft.vim
src/testdir/test_filetype.vim
src/version.c

index 0a65aa90850575eeb1a91fcffb8692275c32cc1d..3f3fe971a51aa87d042eeb2aadb347d1b79a21f0 100644 (file)
@@ -2827,6 +2827,8 @@ const ft_from_ext = {
   "txi": "texinfo",
   # Thrift (Apache)
   "thrift": "thrift",
+  # Tiger
+  "tig": "tiger",
   # TLA+
   "tla": "tla",
   # TPP - Text Presentation Program
index 4ae9b7b025037574a3bc02ee7e09a3730f835294..625a4f90ad75957e6dc4c7c191d131ae2d96f33c 100644 (file)
@@ -886,6 +886,7 @@ def s:GetFilenameChecks(): dict<list<string>>
     tf: ['file.tf', '.tfrc', 'tfrc'],
     thrift: ['file.thrift'],
     tidy: ['.tidyrc', 'tidyrc', 'tidy.conf'],
+    tiger: ['file.tig'],
     tilde: ['file.t.html'],
     tla: ['file.tla'],
     tli: ['file.tli'],
index a5a3146d9e6438638cc3f0f589180b8c6573de45..fe5a71b227c3168b248ddde3a2ebffe1666d0db2 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2094,
 /**/
     2093,
 /**/