Re: Petition: Treat #!... shebangs as comments - Mailing list pgsql-general

From Karsten Hilbert
Subject Re: Petition: Treat #!... shebangs as comments
Date
Msg-id 20140718194342.GA3259@hermes.hilbert.loc
Whole thread Raw
In response to Re: Petition: Treat #!... shebangs as comments  (David G Johnston <david.g.johnston@gmail.com>)
List pgsql-general
On Fri, Jul 18, 2014 at 10:41:30AM -0700, David G Johnston wrote:

> As an aside - putting an "sql" extension onto a file that uses psql commands
> and features seems wrong...

Weeell, yeah, but, it can make life easier. Take Midnight
Commander for a start -- it recognizes *SQL files by their
.sql extension for syntax highlighting. It doesn't recognize
.psql ones as yet.

Now, of course, I should work on getting mc to

- recognize *SQL files based on content
- recognize .psql files as containing (one "dialect" of) SQL
- fully parse .psql files as "Postgre"-SQL

but until that happens I am quite happy with mc properly
highlighting (most SQL) in my .sql-named psql files ;-)

Karsten
--
GPG key ID E4071346 @ gpg-keyserver.de
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346


pgsql-general by date:

Previous
From: Andrew Pennebaker
Date:
Subject: Re: Petition: Treat #!... shebangs as comments
Next
From: Karsten Hilbert
Date:
Subject: Re: Petition: Treat #!... shebangs as comments