]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0076: luau config file not detected v9.1.0076
authorlopy <70210066+lopi-py@users.noreply.github.com>
Sun, 4 Feb 2024 09:27:33 +0000 (10:27 +0100)
committerChristian Brabandt <cb@256bit.org>
Sun, 4 Feb 2024 09:27:33 +0000 (10:27 +0100)
Problem:  luau config file not detected
          (lopy)
Solution: Detect it as jsonc
          (lopy)

fixes: #13960
closes: #13970

Signed-off-by: lopy <70210066+lopi-py@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index f1e1a76f214ac02cfdd3bf534edaa6000a388194..17fe86d7b479e25043cbfd0a3a12e64a12a066db 100644 (file)
@@ -1244,6 +1244,9 @@ au BufNewFile,BufRead *.lua                       setf lua
 " Luau
 au BufNewFile,BufRead *.luau           setf luau
 
+" Luau config
+au BufNewFile,BufRead .luaurc          setf jsonc
+
 " Luacheck
 au BufNewFile,BufRead .luacheckrc              setf lua
 
index 045675bbcd5bed211588e742cf35fb09218cea7a..544557afb01cc671f90c5d4f3d7c2e0d08a64b5c 100644 (file)
@@ -351,7 +351,7 @@ def s:GetFilenameChecks(): dict<list<string>>
     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.geojson', 'file.webmanifest', 'Pipfile.lock', 'file.ipynb', '.prettierrc', '.firebaserc', '.stylelintrc', 'file.slnf'],
     json5: ['file.json5'],
-    jsonc: ['file.jsonc', '.babelrc', '.eslintrc', '.jsfmtrc', '.jshintrc', '.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', '.luaurc'],
     jsonl: ['file.jsonl'],
     jsonnet: ['file.jsonnet', 'file.libsonnet'],
     jsp: ['file.jsp'],
index 78d8cf50d0869e898d99f870bcbd9700f634141f..efde1b57f83e7e35d87b970fa39049ee49194c51 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    76,
 /**/
     75,
 /**/