]> granicus.if.org Git - vim/commitdiff
patch 9.0.1272: typo in pattern for filetype detection v9.0.1272
authorzeertzjq <zeertzjq@outlook.com>
Wed, 1 Feb 2023 15:31:23 +0000 (15:31 +0000)
committerBram Moolenaar <Bram@vim.org>
Wed, 1 Feb 2023 15:31:23 +0000 (15:31 +0000)
Problem:    Typo in pattern for filetype detection.
Solution:   Fix the typo. (closes #11924)

runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index a06b450d0afdfad509886dc1712199ed555c6a6c..7810077cdbd42147b1b17c978c42deae07484b4d 100644 (file)
@@ -1024,7 +1024,7 @@ au BufNewFile,BufRead .prettierrc,.firebaserc,.stylelintrc        setf json
 
 " JSONC (JSON with comments)
 au BufNewFile,BufRead *.jsonc,.babelrc,.eslintrc,.jsfmtrc      setf jsonc
-au BufNewFile,BufRead .jshintc,.hintrc,.swrc,[jt]sconfig*.json         setf jsonc
+au BufNewFile,BufRead .jshintrc,.hintrc,.swrc,[jt]sconfig*.json        setf jsonc
 
 " JSON
 au BufNewFile,BufRead *.json,*.jsonp,*.webmanifest     setf json
index 6ffb46755bb8aa3537f4be8a3b1aaf486b45ccfb..03fd2354cdc63b397c773ee51418d4034aaa5528 100644 (file)
@@ -295,7 +295,7 @@ let s:filename_checks = {
     \ 'jproperties': ['file.properties', 'file.properties_xx', 'file.properties_xx_xx', 'some.properties_xx_xx_file', 'org.eclipse.xyz.prefs'],
     \ 'json': ['file.json', 'file.jsonp', 'file.json-patch', 'file.webmanifest', 'Pipfile.lock', 'file.ipynb', '.prettierrc', '.firebaserc', '.stylelintrc', 'file.slnf'],
     \ 'json5': ['file.json5'],
-    \ 'jsonc': ['file.jsonc', '.babelrc', '.eslintrc', '.jsfmtrc', '.jshintc', '.hintrc', '.swrc', 'jsconfig.json', 'tsconfig.json', 'tsconfig.test.json', 'tsconfig-test.json'],
+    \ 'jsonc': ['file.jsonc', '.babelrc', '.eslintrc', '.jsfmtrc', '.jshintrc', '.hintrc', '.swrc', 'jsconfig.json', 'tsconfig.json', 'tsconfig.test.json', 'tsconfig-test.json'],
     \ 'jsonnet': ['file.jsonnet', 'file.libsonnet'],
     \ 'jsp': ['file.jsp'],
     \ 'julia': ['file.jl'],
index 68c47a32d752121d6757b65c8e487736fffec645..dc3fad59d2c269610637a7c478209a5d093633df 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1272,
 /**/
     1271,
 /**/