From 0f8bbfc1f500d949076aecd792c7d99652e322a5 Mon Sep 17 00:00:00 2001 From: keufcp <149170099+keufcp@users.noreply.github.com> Date: Thu, 9 Jul 2026 21:10:41 +0900 Subject: [PATCH] fix: replace highlight captures that don't work in Zed - replace Lua-style %d in #match? predicates with \d: Zed's regex engine never matched them, so numeric literals fell through to the @string capture - replace @float with @number: Zed themes have no "float" style - replace @field with @property: Zed themes have no "field" style, leaving column names unstyled --- languages/sql/highlights.scm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/languages/sql/highlights.scm b/languages/sql/highlights.scm index b89f1e4..699778f 100644 --- a/languages/sql/highlights.scm +++ b/languages/sql/highlights.scm @@ -19,13 +19,13 @@ ] @function.call (field - name: (identifier) @field) + name: (identifier) @property) (column_definition - name: (identifier) @field) + name: (identifier) @property) (column - name: (identifier) @field) + name: (identifier) @property) (term alias: (identifier) @variable) @@ -40,10 +40,10 @@ (marginalia) @comment ((literal) @number - (#match? @number "^[-+]?%d+$")) + (#match? @number "^[-+]?\\d+$")) -((literal) @float - (#match? @float "^[-+]?%d*\.%d*$")) +((literal) @number + (#match? @number "^[-+]?\\d*\\.\\d*$")) (parameter) @parameter