diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2025-03-23 10:37:59 +0100 |
|---|---|---|
| committer | Christian Clason <ch.clason+github@icloud.com> | 2025-03-23 11:47:42 +0100 |
| commit | 2eddd6f7c07980e6e1734a490c3f3d7a598436e6 (patch) | |
| tree | eb2c7d83ba9598a1b50aef51242306761bd9cb9b /test | |
| parent | f4d9a2983a49c1729f78ffbf6b1e6dcc30215d0d (diff) | |
| download | rneovim-2eddd6f7c07980e6e1734a490c3f3d7a598436e6.tar.gz rneovim-2eddd6f7c07980e6e1734a490c3f3d7a598436e6.tar.bz2 rneovim-2eddd6f7c07980e6e1734a490c3f3d7a598436e6.zip | |
vim-patch:9.1.1231: filetype: SPA JSON files are not recognized
Problem: filetype: SPA (single page application) JSON files are not
recognized (used by pipewire and wireplumber)
Solution: detect pipewire and wireplumber configuration files as spajson
filetype, include filetype, indent and syntax scripts for this
new filetype (David Mandelberg).
I looked at all the files found by this command to see if the syntax
highlighting looked reasonable:
```
find {~/.config,/etc,/usr/share}/{pipewire,wireplumber} -type f -name \*.conf
```
References:
* pipewire config files: https://docs.pipewire.org/page_config.html
* wireplumber config files:
https://pipewire.pages.freedesktop.org/wireplumber/daemon/configuration/conf_file.html
and
* https://pipewire.pages.freedesktop.org/wireplumber/daemon/locations.html
closes: vim/vim#16950
https://github.com/vim/vim/commit/4e7b4308fb92628434bd7e07ab92910c33051431
Co-authored-by: David Mandelberg <david@mandelberg.org>
Diffstat (limited to 'test')
| -rw-r--r-- | test/old/testdir/test_filetype.vim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim index 7a0ce47948..4e54ff598f 100644 --- a/test/old/testdir/test_filetype.vim +++ b/test/old/testdir/test_filetype.vim @@ -719,6 +719,8 @@ func s:GetFilenameChecks() abort \ 'snobol4': ['file.sno', 'file.spt'], \ 'solidity': ['file.sol'], \ 'solution': ['file.sln'], + \ 'spajson': ['any/pipewire/file.conf', 'any/pipewire/file.conf.d/other.conf', + \ 'any/wireplumber/file.conf', 'any/wireplumber/file.conf.d/other.conf'], \ 'sparql': ['file.rq', 'file.sparql'], \ 'spec': ['file.spec'], \ 'spice': ['file.sp', 'file.spice'], |