From 989ce8cea5aaad27ea4eed576b629e24896b0106 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20H=E1=BB=93ng=20Qu=C3=A2n?= Date: Sat, 14 Mar 2026 23:27:01 +0700 Subject: [PATCH] Highlight more expression in Gel (formerly EdgeDB) DB schema (#15332) --- languages.toml | 6 +++--- runtime/queries/esdl/highlights.scm | 7 ++----- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/languages.toml b/languages.toml index fe056794..c52251a3 100644 --- a/languages.toml +++ b/languages.toml @@ -3047,14 +3047,14 @@ source = { git = "https://github.com/synaptiko/tree-sitter-xit", rev = "7d790245 name = "esdl" scope = "source.esdl" injection-regex = "esdl" -file-types = ["esdl"] +file-types = ["gel", "esdl"] comment-token = "#" indent = { tab-width = 2, unit = " " } -roots = ["edgedb.toml"] +roots = ["gel.toml", "edgedb.toml"] [[grammar]] name ="esdl" -source = { git = "https://github.com/greym0uth/tree-sitter-esdl", rev = "df83acc8cacd0cfb139eecee0e718dc32c4f92e2" } +source = { git = "https://github.com/hongquan/tree-sitter-esdl", rev = "c824fe2bbbed6b29e50c694420aa2b377782f80a" } [[language]] name = "pascal" diff --git a/runtime/queries/esdl/highlights.scm b/runtime/queries/esdl/highlights.scm index a009933f..8ed0edba 100644 --- a/runtime/queries/esdl/highlights.scm +++ b/runtime/queries/esdl/highlights.scm @@ -28,15 +28,13 @@ (comment) @comment -; Properties +; Properties (includes both property and link declarations, since link keyword is optional) (property) @variable.other.member -(link) @variable.other.member -(annotation) @variable.other.member (string) @string (edgeql_fragment) @string -; Builtins +; Builtins (type) @type [ "str" @@ -72,4 +70,3 @@ "->" ":=" ] @operator - -- 2.51.2