WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@I-love-C
Copy link

Problem

The pgfunc and pgtrigger snippets were not appearing in the editor due to $$ delimiter conflicts with Zed's snippet parser.

Solution

Escaped PostgreSQL dollar-quote delimiters ($$) as \\$\\$ to prevent conflicts with TextMate snippet grammar, which uses $ as a metacharacter for placeholders.

Changes to snippets

  • pgfunc
  • pgtrigger
  • pgfts

I tested that the snippets work

Snippet parser uses $ as metacharacter, causing silent failures when parsing 23284 string delimiters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant