Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113242 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 30119 invoked from network); 23 Feb 2021 22:02:52 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 23 Feb 2021 22:02:52 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id CCEAA1804E1 for ; Tue, 23 Feb 2021 13:51:27 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-ua1-f54.google.com (mail-ua1-f54.google.com [209.85.222.54]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 23 Feb 2021 13:51:27 -0800 (PST) Received: by mail-ua1-f54.google.com with SMTP id a22so15316uao.9 for ; Tue, 23 Feb 2021 13:51:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=eGMW5ExnZwvqpIbpT8kFcuJN4ULXuyACYXhRCo8ho+0=; b=JbzWCWYEGycq+I/iDMEakiJfKHdN/kp9LFhse6rkcndbrWroHXzFmRf7DE+j2XLj+d Z5z5PK0M7i5eNkQuQQg6fBrhSxoebgAa2X4xYXLbAkVpn9VdBNXeE1aJBDpCLjYdQonF TyQLLqBXNPhl1xIoTRWeJmAOvhPpHubsXrfxUc+sVwzVy3b1uGZV8i8jFTeIMEbVLe1y FAyJSuUbsPNrT3fEwISzY3j/dZ6PqgsNkiBVG78KoYGGeaKf327Q5BdPSr5FFcZMKZL4 8/85z0n4o9HCPlijK3pn5KuCAO5CT6IeZ4/oJIwjEKcerN+kazopE0AsA644+7i3/0bS rCRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=eGMW5ExnZwvqpIbpT8kFcuJN4ULXuyACYXhRCo8ho+0=; b=XdlW1TUPDBa4qhPSYQvaVQhbcPVC1zgIzB6ssNArtXBya8BPOT5+PJoDlSV2FkMrS5 OcIe0hrWPg/wkVNaCgDPIbUv7TIeZ5reJgH96745uQLaprNpd129d909FlxmPJUJwDup DRhHp0CCBd6bdKj1AI5uKqF6V5EDPnUHGIqvSyEA/tXEVMJy8AJXJHyTY105jYLt+l3J crS/+5CJH2Py+yUXHgVlJT6YfqsgDUS8AbpQU8ZlBZLz4MxXEj0Rnn9Fb7sSOxDb30CD lVUN8ic5QXhVzSaA+pxVBZ6OEXWDnaq5DnC3YWzi0lugfj9gfAqO1S5tzZRLfl+mbRSn qZog== X-Gm-Message-State: AOAM533AGUPdfnUBk3nG7N01LKZQJINjDRzS2E/kM3jjzedotXAWWv9B 3ODWKEOQlOB0Eod6nKoef/vdJHJJETSYlBUoDPw= X-Google-Smtp-Source: ABdhPJyH3IOECs7gQml7bCqbuF29mM93My566kYbo3JoKvxPAKNTfstU/OoPwl8ina2ILRGP/3pktwkUv6E3MbCZwNE= X-Received: by 2002:ab0:1c1b:: with SMTP id a27mr7700174uaj.86.1614117084193; Tue, 23 Feb 2021 13:51:24 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 23 Feb 2021 16:51:13 -0500 Message-ID: To: Nikita Popov Cc: PHP internals Content-Type: multipart/alternative; boundary="0000000000006de83405bc07eb6e" Subject: Re: [PHP-DEV] Avoiding enum reserved keyword From: matthewmatthew@gmail.com (Matthew Brown) --0000000000006de83405bc07eb6e Content-Type: text/plain; charset="UTF-8" On Tue, 23 Feb 2021 at 06:21, Nikita Popov wrote: > Another possibility would be to recognize T_ENUM in the lexer, but only if > it is followed by whitespace and an identifier. This would possibly be > friendlier for tooling using token_get_all(). It would not permit comments > in between the tokens though. > I like this option. I can't think anyone would want to write "enum /** some comment */ Foo {...}" --0000000000006de83405bc07eb6e--