ZIm/crates/languages/src/jsonc
KyleBarton 6bdd2cf7db
Consider the colon to be a word character when inside a string in JSON (#26574)
Partially addresses #25698

Part of why autocomplete suggestions for `keymap.json` aren't great is
because `:` is (correctly) considered a punctuation character, rather
than a word character, in JSON. But since `::` is part of the name of
zed commands, it means that the autocomplete context window loses
context after the user types colon:

Suggestion here is to use overrides for JSON and JSONC such that colon
is considered a word character when it's inside a string. This improves
the experience:

I believe this is more broadly correct anyway, since `:` loses it's
punctuation meaning when inside a string.

Hope this is helpful!

Release Notes:

- Improved autocomplete for keymap.json by treating `::` like word characters when inside a string.
2025-03-13 16:21:34 -04:00
..
brackets.scm Add separate JSONC language (#12655) 2024-06-27 11:12:02 +02:00
config.toml Consider the colon to be a word character when inside a string in JSON (#26574) 2025-03-13 16:21:34 -04:00
embedding.scm Add separate JSONC language (#12655) 2024-06-27 11:12:02 +02:00
highlights.scm Improve JSON syntax highlighting (#25329) 2025-02-21 15:59:32 +00:00
indents.scm Add separate JSONC language (#12655) 2024-06-27 11:12:02 +02:00
outline.scm Add separate JSONC language (#12655) 2024-06-27 11:12:02 +02:00
overrides.scm Add separate JSONC language (#12655) 2024-06-27 11:12:02 +02:00
redactions.scm Add separate JSONC language (#12655) 2024-06-27 11:12:02 +02:00
textobjects.scm Add textobjects queries (#20924) 2024-12-03 10:37:01 -07:00