From 7882f69abb73509f34b8454d2f7c98f1add4076b Mon Sep 17 00:00:00 2001 From: Shunichiro Nomura Date: Fri, 2 Oct 2026 12:51:39 +0900 Subject: [PATCH] Highlight the contextual plots keyword and re-pin the grammar --- extension.toml | 2 +- languages/graphcal/highlights.scm | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/extension.toml b/extension.toml index 4b1a52f..1663a1e 100644 --- a/extension.toml +++ b/extension.toml @@ -8,7 +8,7 @@ repository = "https://github.com/graphcal-lang/zed-graphcal" [grammars.graphcal] repository = "https://github.com/graphcal-lang/tree-sitter-graphcal" -rev = "b1bb618db937ca310a8851d142c951900d80f5be" +rev = "9b360c0cc63535539ef4eaf232af6de6a97a599b" [language_servers.graphcal-lsp] name = "Graphcal LSP" diff --git a/languages/graphcal/highlights.scm b/languages/graphcal/highlights.scm index 2dc014e..f53f199 100644 --- a/languages/graphcal/highlights.scm +++ b/languages/graphcal/highlights.scm @@ -373,6 +373,7 @@ ; --------------------------------------------------------------- (figure_declaration name: (identifier) @variable) +(figure_plots_field "plots" @keyword) (figure_named_field name: (identifier) @property) ; --------------------------------------------------------------- @@ -380,6 +381,7 @@ ; --------------------------------------------------------------- (layer_declaration name: (identifier) @variable) +(layer_plots_field "plots" @keyword) (layer_named_field name: (identifier) @property) ; ---------------------------------------------------------------