[vim/vim] Syntax Highlighting for JSON-LD (PR #20954)
Boobies (Vim Github Repository) <[email protected]> Wed, 05 Aug 2026 16:45:30 -0700
| Newsgroups | gmane.editors.vim.devel |
|---|---|
| Message-ID | <vim/vim/pull/[email protected]> |
Adds syntax highlighting for W3C's JSON-LD by making use of JSON's highlighting and adding the JSON-LD keywords to it. For example, in the following `.jsonld` file
```
{
"@context": {
"name": "https://schema.org/name"
},
"name": "Alice"
}
```
`@context` will be highlighted using the `SpecialChar` group. I chose this highlighting group because it is consistent with other languages, for example this is how C conversion specifiers such as `%d` are highlighted in the string `"Number: %d"`.
You can view, comment on, or merge this pull request online at:
https://github.com/vim/vim/pull/20954
-- Commit Summary --
* filetype: JSON-LD files have no dedicated syntax support
-- File Changes --
M runtime/autoload/dist/ft.vim (4)
A runtime/ftplugin/jsonld.vim (10)
A runtime/indent/jsonld.vim (6)
M runtime/makemenu.vim (3)
M runtime/synmenu.vim (31)
A runtime/syntax/jsonld.vim (31)
A runtime/syntax/testdir/dumps/jsonld_00.dump (20)
A runtime/syntax/testdir/dumps/jsonld_01.dump (20)
A runtime/syntax/testdir/dumps/jsonld_02.dump (20)
A runtime/syntax/testdir/input/jsonld.jsonld (41)
M src/testdir/test_filetype.vim (1)
-- Patch Links --
https://github.com/vim/vim/pull/20954.patch
https://github.com/vim/vim/pull/20954.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/vim/vim/pull/20954
You are receiving this because you are subscribed to this thread.
Message ID: <vim/vim/pull/[email protected]>
--
--
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/vim/vim/pull/20954%40github.com.