diff options
author | David Mitchell <davem@iabyn.com> | 2018-02-26 13:50:50 +0000 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2018-03-02 13:36:43 +0000 |
commit | 86ae8d9a6f56e9e71efc1f3e556f6770dc07566e (patch) | |
tree | 01ce23f793f540508a74cfd9a87421266c46a9a5 /perl.h | |
parent | 75230cc19006735d29105daf0c6dcaf41880f961 (diff) | |
download | perl-86ae8d9a6f56e9e71efc1f3e556f6770dc07566e.tar.gz |
subtly change meaning of XATTRBLOCK, XATTRTERM
Currently they tell the toker that the next thing will be attributes,
followed by an XBLOCK or XTERMBLOCK respectively.
This commit subtly changes their meanings so that they indicate that
attributes legally *might* follow. This makes the code which initially
sets them slightly simpler (no need to check whether the next char is
':'), and the code elsewhere in yylex() which handles XATTR* only triggers
if the next char is ':' anyway.
Doing it this way will shortly make detection simpler of an attribute
illegally following a signature.
Diffstat (limited to 'perl.h')
-rw-r--r-- | perl.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4983,8 +4983,8 @@ typedef enum { XREF, XSTATE, XBLOCK, - XATTRBLOCK, - XATTRTERM, + XATTRBLOCK, /* next token should be an attribute or block */ + XATTRTERM, /* next token should be an attribute, or block in a term */ XTERMBLOCK, XBLOCKTERM, XPOSTDEREF, |