From 851121ffd47161fde1091bcc7dd665fc59ef79fb Mon Sep 17 00:00:00 2001 From: Cole Miller Date: Mon, 19 May 2025 17:46:09 +0200 Subject: [PATCH] docs: Document how to load extension grammars from the local FS during development (#30817) Loading a local grammar could be useful if you're developing the extension and the grammar in tandem, and a user pointed out that our docs don't make it obvious that it's possible at all. 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 257c3ff18b..d090e4a1c7 100644 --- a/docs/src/extensions/languages.md +++ b/docs/src/extensions/languages.md @@ -54,7 +54,7 @@ repository = "https://github.com/gleam-lang/tree-sitter-gleam" rev = "58b7cac8fc14c92b0677c542610d8738c373fa81" ``` -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. +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. If you're developing an extension locally and want to load a grammar from the local filesystem, you can use a `file://` URL for `repository`. An extension can provide multiple grammars by referencing multiple tree-sitter repositories. ## Tree-sitter Queries