[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ELPA] New package: cycle-quotes.el
From: |
Michael Mauger |
Subject: |
Re: [ELPA] New package: cycle-quotes.el |
Date: |
Sun, 5 Jun 2016 21:05:56 -0700 (MST) |
on Sun, Jun 5th at 6:51a, Simen Heggestøyl-2 said:
> It already supports Python's triple quotes by looking for multiple
> successive quote characters.
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.
--
Michael Mauger: maintainer sql.el
--
View this message in context:
http://emacs.1067599.n5.nabble.com/ELPA-New-package-cycle-quotes-el-tp399526p399665.html
Sent from the Emacs - Dev mailing list archive at Nabble.com.