You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! Awesome plugin. I was setting up slonik on a project and noticed that the highlighting doesn't work when I use slonik's sql.type with a custom inline zod schema.
Highlights:
constschema=z.object({num: z.number()});sql.type(schema)` SELECT 1 as num`;
Doesn't highlight:
sql.type(z.object({num: z.number()}))` SELECT 1 as num`;
The text was updated successfully, but these errors were encountered:
Hi @mgreenw, thanks for the report. I have not figured out a way to solve this issue after trying a couple of times back in the spring of this year, and could use help. If i recall correctly, this issue is one of knowing when the SQL template actually begins and is not part of the code in the schema definition. there are also limitations with multiple lines in textmate grammars possibly at play. but again, i could be wrong and there may be a clean solution i'm just not aware of
I'm unable to find it at the moment, but there is a discussion or github issue somewhere about this problem and the collaborators opted to just avoid inlining their schema definitions
Hi! Awesome plugin. I was setting up
slonik
on a project and noticed that the highlighting doesn't work when I useslonik
'ssql.type
with a custom inlinezod
schema.Highlights:
Doesn't highlight:
The text was updated successfully, but these errors were encountered: