[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ELPA] New package: cycle-quotes.el
From: |
Simen Heggestøyl |
Subject: |
Re: [ELPA] New package: cycle-quotes.el |
Date: |
Tue, 07 Jun 2016 19:41:22 +0200 |
Michael Mauger <address@hidden> writes:
> There are other styles of strings that could be supported. In SQL, there are
> several dialect-specific string styles. String terminators and escape
> mechanisms are dependent on string introducers and dialect. I wouldn't
> expect that you're package would support all of them, but possibly it could
> rely upon local buffer variables and mode-specific hooks to provide parsing
> and alternative support.
>
> As examples,
> SQLite: supports single quotes
> Postgres: supports single quotes, $$..$$, and $xyz$ .. $xyz$ and other
> syntaxes
> Oracle (sorry they are the 800lb gorilla when it comes to SQL): supports
> single quotes, Q'x .. x' (where x is ), ], }, or > in the terminator if the
> first x is (, [, {, or < respectively, or the same character is used in the
> start and end otherwise)
>
> The functionality you provide is useful, but making it so that mode-specific
> hooks can provide the intelligent details, while your module provides the
> engine for cycling and escaping might be a future direction.
>
> Thanks for your contribution.
Thanks for your feedback, Michael. I see now that it could be useful
to provide such hooks.
Is it OK for you if I send you some diffs for review while working on
this feature?
-- Simen