Thread: Bug report: Syntax Coloring
Syntax coloring in PgAdmin3 (Version 1.10.3 on MacOS) does not correctly deal with nested comments. Try entering the following in the "Query" window: /* /*NESTED COMMENT*/ THIS IS STILL A COMMENT */ the words "THIS IS STILL A COMMENT" do not have the comment color. The PostgreSQL docs specify that comments may be nested, see: http://www.postgresql.org/docs/8.4/static/sql-syntax-lexical.html#SQL-SYNTAX-COMMENTS Best Regards, Jakob Egger
Le 16/02/2011 11:28, Jakob Egger a écrit : > Syntax coloring in PgAdmin3 (Version 1.10.3 on MacOS) does not correctly deal with nested comments. > > Try entering the following in the "Query" window: > > /* /*NESTED COMMENT*/ THIS IS STILL A COMMENT */ > > the words "THIS IS STILL A COMMENT" do not have the comment color. > > The PostgreSQL docs specify that comments may be nested, see: > http://www.postgresql.org/docs/8.4/static/sql-syntax-lexical.html#SQL-SYNTAX-COMMENTS > You're right. I added a ticket to work on this later. -- Guillaumehttp://www.postgresql.frhttp://dalibo.com
On 22 February 2011 20:56, Guillaume Lelarge <guillaume@lelarge.info> wrote: > You're right. I added a ticket to work on this later. I've noticed in the past that syntax highlighting is a bit broken. It's possible to break it by copying and pasting. Perhaps I'll create a test case for that if I get a chance later. -- Regards, Peter Geoghegan
Le 23/02/2011 00:10, Peter Geoghegan a écrit : > On 22 February 2011 20:56, Guillaume Lelarge <guillaume@lelarge.info> wrote: > >> You're right. I added a ticket to work on this later. > > I've noticed in the past that syntax highlighting is a bit broken. > It's possible to break it by copying and pasting. Perhaps I'll create > a test case for that if I get a chance later. > Yeah. There are many ways to break it. Think dollar quoting for instance. -- Guillaumehttp://www.postgresql.frhttp://dalibo.com