From 082469e173595b031a08c42f941a693a5028fc29 Mon Sep 17 00:00:00 2001 From: uncenter <47499684+uncenter@users.noreply.github.com> Date: Mon, 16 Dec 2024 15:40:02 -0500 Subject: [PATCH] docs: Use `rev` instead of `commit` for extension grammars (#22105) `rev` is the preferred key --- docs/src/extensions/languages.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/extensions/languages.md b/docs/src/extensions/languages.md index fc2c42c74aee5bf73fb6196cb7c140a092563668..061496caf75812ffbd30484fc2518d976599cb35 100644 --- a/docs/src/extensions/languages.md +++ b/docs/src/extensions/languages.md @@ -51,10 +51,10 @@ Zed uses the [Tree-sitter](https://tree-sitter.github.io) parsing library to pro ```toml [grammars.gleam] repository = "https://github.com/gleam-lang/tree-sitter-gleam" -commit = "58b7cac8fc14c92b0677c542610d8738c373fa81" +rev = "58b7cac8fc14c92b0677c542610d8738c373fa81" ``` -The `repository` field must specify a repository where the Tree-sitter grammar should be loaded from, and the `commit` field must contain the SHA of the Git commit to use. An extension can provide multiple grammars by referencing multiple tree-sitter repositories. +The `repository` field must specify a repository where the Tree-sitter grammar should be loaded from, and the `rev` field must contain a Git revision to use, such as the SHA of a Git commit. An extension can provide multiple grammars by referencing multiple tree-sitter repositories. ## Tree-sitter Queries