]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1231: filetype: SPA JSON files are not recognized v9.1.1231
authorDavid Mandelberg <david@mandelberg.org>
Sun, 23 Mar 2025 09:26:00 +0000 (10:26 +0100)
committerChristian Brabandt <cb@256bit.org>
Sun, 23 Mar 2025 09:26:00 +0000 (10:26 +0100)
commit4e7b4308fb92628434bd7e07ab92910c33051431
tree034b3a9dd86e41f888f529a88c0e386b17faceff
parent932a535bfa8f5fef1b367fe927ec27e20c7a866b
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: #16950

Signed-off-by: David Mandelberg <david@mandelberg.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
.github/MAINTAINERS
runtime/filetype.vim
runtime/ftplugin/spajson.vim [new file with mode: 0644]
runtime/indent/spajson.vim [new file with mode: 0644]
runtime/syntax/spajson.vim [new file with mode: 0644]
src/testdir/test_filetype.vim
src/version.c