[Phpmyadmin-devel] reserved words and forbidden words

Robin H. Johnson robbat2 at users.sourceforge.net
Thu May 23 21:34:54 CEST 2013

On Thu, May 23, 2013 at 01:06:03PM -0400, Marc Delisle wrote:
> Hi,
> does someone remember why we have two lists:
> $PMA_SQPdata_reserved_word
> $PMA_SQPdata_forbidden_word
> referring both to the MySQL reserved words list!
Popping my head in as the person that originally wrote much of the
parser+highlighter code ;-).

Reserved words originally referred to keywords that got highlighted
specially, while forbidden words were those that the MySQL parser would
throw an error on.

All forbidden words are reserved, but not all reserved words are

reserved & forbidden => always highlight as keyword
reserved & !forbidden => highlight as intelligently
!reserved & forbidden => invalid state

Robin Hugh Johnson
Gentoo Linux: Developer, Trustee & Infrastructure Lead
E-Mail     : robbat2 at gentoo.org
GnuPG FP   : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85

More information about the Developers mailing list