From 3a1f4776d46a02873762bc95a38a7b816c851d48 Mon Sep 17 00:00:00 2001 From: Alfredo Menezes Date: Wed, 28 Jan 2026 05:08:52 -0500 Subject: [PATCH] docs: Add missing syntax highlighting captures (#47791) ## Summary Adds three syntax highlighting captures that are used across multiple language definitions but were missing from the documentation table in `docs/src/extensions/languages.md`. ## Added Captures | Capture | Used In | |---------|---------| | `@constant.builtin` | C, Go, C++, YAML, TSX | | `@type.builtin` | C++, Python, Rust, JavaScript, TSX | | `@variable.parameter` | TypeScript, JavaScript, Python, Rust, TSX, Diff | ## Context While working on a [PR to add named argument highlighting to the PHP extension](https://github.com/zed-extensions/php/pull/95), I initially used `@label` because the documentation didn't list `@variable.parameter`. A reviewer pointed out that `@variable.parameter` is actually supported and preferred - the docs were just outdated. This PR fixes that documentation gap. Release Notes: - N/A --- docs/src/extensions/languages.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/src/extensions/languages.md b/docs/src/extensions/languages.md index 8bbf3d881084d66316558ec57a51f62ccc7d0ab6..b8df7794f25557f9ab979d4bdbc14217d9a9316f 100644 --- a/docs/src/extensions/languages.md +++ b/docs/src/extensions/languages.md @@ -99,6 +99,7 @@ This query marks strings, object keys, and numbers for highlighting. The followi | @comment | Captures comments | | @comment.doc | Captures documentation comments | | @constant | Captures constants | +| @constant.builtin | Captures built-in constants | | @constructor | Captures constructors | | @embedded | Captures embedded content | | @emphasis | Captures emphasized text | @@ -131,8 +132,10 @@ This query marks strings, object keys, and numbers for highlighting. The followi | @text.literal | Captures literal text | | @title | Captures titles | | @type | Captures types | +| @type.builtin | Captures built-in types | | @variable | Captures variables | | @variable.special | Captures special variables | +| @variable.parameter | Captures function/method parameters | | @variant | Captures variants | ### Bracket matching