patch 9.1.1598: filetype: waybar config file is not recognized
Commit:
https://github.com/vim/vim/commit/a6e28b1d0508e499844d289aa00773fe9cb5503b
Author: Furkan Sahin <[email protected]>
Date: Thu Aug 7 15:13:21 2025 +0200
patch 9.1.1598: filetype: waybar config file is not recognized
Problem: filetype: waybar config file is not recognized
Solution: Detect */waybar/config file as jsonc filetype
(Furkan Sahin)
closes: #17915
Signed-off-by: Furkan Sahin <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 59b2426e8..406b93d03 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -2882,6 +2882,9 @@ au BufNewFile,BufRead *.vroom setf
vroom
" Vue.js Single File Component
au BufNewFile,BufRead *.vue setf vue
+" Waybar config
+au BufNewFile,BufRead */waybar/config setf jsonc
+
" WebAssembly
au BufNewFile,BufRead *.wat,*.wast setf wat
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index 8aab47064..7c5962cd9 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -406,7 +406,7 @@ def s:GetFilenameChecks(): dict<list<string>>
'.prettierrc', '.firebaserc', '.stylelintrc', '.lintstagedrc',
'file.slnf', 'file.sublime-project', 'file.sublime-settings',
'file.sublime-workspace',
'file.bd', 'file.bda', 'file.xci', 'flake.lock', 'pack.mcmeta',
'deno.lock', '.swcrc'],
json5: ['file.json5'],
- jsonc: ['file.jsonc', '.babelrc', '.eslintrc', '.jsfmtrc', '.jshintrc',
'.jscsrc', '.vsconfig', '.hintrc', '.swrc', 'jsconfig.json', 'tsconfig.json',
'tsconfig.test.json', 'tsconfig-test.json', '.luaurc', 'bun.lock',
expand("$HOME/.config/VSCodium/User/settings.json")],
+ jsonc: ['file.jsonc', '.babelrc', '.eslintrc', '.jsfmtrc', '.jshintrc',
'.jscsrc', '.vsconfig', '.hintrc', '.swrc', 'jsconfig.json', 'tsconfig.json',
'tsconfig.test.json', 'tsconfig-test.json', '.luaurc', 'bun.lock',
expand("$HOME/.config/VSCodium/User/settings.json"),
'/home/user/.config/waybar/config' ],
jsonl: ['file.jsonl'],
jsonnet: ['file.jsonnet', 'file.libsonnet'],
jsp: ['file.jsp'],
diff --git a/src/version.c b/src/version.c
index a08261bf4..ff47328d4 100644
--- a/src/version.c
+++ b/src/version.c
@@ -719,6 +719,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1598,
/**/
1597,
/**/
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1uk0h1-000UZH-UJ%40256bit.org.