From 48b1a43f5e41d8e310b3b2d0bbd428e21c7fbc7a Mon Sep 17 00:00:00 2001 From: Finn Evers Date: Thu, 20 Mar 2025 21:25:54 +0100 Subject: [PATCH] docs: Fix rendering of keybind in `languages.md` (#27217) This fixes a broken keybind in the language extension docs: [Language metadata](https://zed.dev/docs/extensions/languages#language-metadata) > `line_comments`. Release Notes: - N/A --- docs/src/extensions/languages.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/extensions/languages.md b/docs/src/extensions/languages.md index 42454f37bb..257c3ff18b 100644 --- a/docs/src/extensions/languages.md +++ b/docs/src/extensions/languages.md @@ -23,7 +23,7 @@ line_comments = ["# "] - `name` (required) is the human readable name that will show up in the Select Language dropdown. - `grammar` (required) is the name of a grammar. Grammars are registered separately, described below. - `path_suffixes` is an array of file suffixes that should be associated with this language. Unlike `file_types` in settings, this does not support glob patterns. -- `line_comments` is an array of strings that are used to identify line comments in the language. This is used for the `editor::ToggleComments` keybind: `{#kb editor::ToggleComments}` for toggling lines of code. +- `line_comments` is an array of strings that are used to identify line comments in the language. This is used for the `editor::ToggleComments` keybind: {#kb editor::ToggleComments} for toggling lines of code. - `tab_size` defines the indentation/tab size used for this language (default is `4`). - `hard_tabs` whether to indent with tabs (`true`) or spaces (`false`, the default). - `first_line_pattern` is a regular expression, that in addition to `path_suffixes` (above) or `file_types` in settings can be used to match files which should use this language. For example Zed uses this to identify Shell Scripts by matching the [shebangs lines](https://github.com/zed-industries/zed/blob/main/crates/languages/src/bash/config.toml) in the first line of a script.