[Phpmyadmin-devel] reserved words and forbidden words
marc at infomarc.info
Fri May 24 01:00:20 CEST 2013
Robin H. Johnson a écrit :
> On Thu, May 23, 2013 at 01:06:03PM -0400, Marc Delisle wrote:
>> does someone remember why we have two lists:
>> referring both to the MySQL reserved words list!
> Popping my head in as the person that originally wrote much of the
> parser+highlighter code ;-).
Thanks Robin. I introduced these forbidden words in
and I no longer see a reason for maintaining two lists, now that we are
planning to highlight with CodeMirror.
> 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
More information about the Developers