Skip to content

Commit 5a8a98e

Browse files
committed
add new token
1 parent f75dd82 commit 5a8a98e

File tree

4 files changed

+11
-0
lines changed

4 files changed

+11
-0
lines changed

Zend/zend_language_parser.y

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ static YYSIZE_T zend_yytnamerr(char*, const char*);
231231
%token T_DOLLAR_OPEN_CURLY_BRACES "'${'"
232232
%token T_CURLY_OPEN "'{$'"
233233
%token T_PAAMAYIM_NEKUDOTAYIM "'::'"
234+
%token T_INNER_REF "':>'"
234235
%token T_NS_SEPARATOR "'\\'"
235236
%token T_ELLIPSIS "'...'"
236237
%token T_COALESCE "'??'"

Zend/zend_language_scanner.l

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1601,6 +1601,10 @@ OPTIONAL_WHITESPACE_OR_COMMENTS ({WHITESPACE}|{MULTI_LINE_COMMENT}|{SINGLE_LINE_
16011601
RETURN_TOKEN(T_PAAMAYIM_NEKUDOTAYIM);
16021602
}
16031603

1604+
<ST_IN_SCRIPTING>":>" {
1605+
RETURN_TOKEN(T_INNER_REF);
1606+
}
1607+
16041608
<ST_IN_SCRIPTING>"..." {
16051609
RETURN_TOKEN(T_ELLIPSIS);
16061610
}

ext/tokenizer/tokenizer_data.c

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ext/tokenizer/tokenizer_data.stub.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -712,6 +712,11 @@
712712
* @cvalue T_PAAMAYIM_NEKUDOTAYIM
713713
*/
714714
const T_PAAMAYIM_NEKUDOTAYIM = UNKNOWN;
715+
/**
716+
* @var int
717+
* @cvalue T_INNER_REF
718+
*/
719+
const T_INNER_REF = UNKNOWN;
715720
/**
716721
* @var int
717722
* @cvalue T_NS_SEPARATOR

0 commit comments

Comments
 (0)