patch 9.1.0076: luau config file not detected
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>
This commit is contained in:
@ -1244,6 +1244,9 @@ au BufNewFile,BufRead *.lua setf lua
|
|||||||
" Luau
|
" Luau
|
||||||
au BufNewFile,BufRead *.luau setf luau
|
au BufNewFile,BufRead *.luau setf luau
|
||||||
|
|
||||||
|
" Luau config
|
||||||
|
au BufNewFile,BufRead .luaurc setf jsonc
|
||||||
|
|
||||||
" Luacheck
|
" Luacheck
|
||||||
au BufNewFile,BufRead .luacheckrc setf lua
|
au BufNewFile,BufRead .luacheckrc setf lua
|
||||||
|
|
||||||
|
|||||||
@ -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'],
|
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'],
|
json: ['file.json', 'file.jsonp', 'file.json-patch', 'file.geojson', 'file.webmanifest', 'Pipfile.lock', 'file.ipynb', '.prettierrc', '.firebaserc', '.stylelintrc', 'file.slnf'],
|
||||||
json5: ['file.json5'],
|
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'],
|
jsonl: ['file.jsonl'],
|
||||||
jsonnet: ['file.jsonnet', 'file.libsonnet'],
|
jsonnet: ['file.jsonnet', 'file.libsonnet'],
|
||||||
jsp: ['file.jsp'],
|
jsp: ['file.jsp'],
|
||||||
|
|||||||
@ -704,6 +704,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
76,
|
||||||
/**/
|
/**/
|
||||||
75,
|
75,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user