History log of /PHP-Parser/lib/PhpParser/Lexer.php (Results 26 – 50 of 80)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 3aadc15e 09-Aug-2020 Nikita Popov

Support keywords in namespaced names


# 23d9c177 02-Aug-2020 Nikita Popov

Add support for nullsafe operator


# 1a1300aa 01-Aug-2020 Nikita Popov

Add reverse emulation support


# acaf3fec 23-Jul-2020 Nikita Popov

Implement emulation of PHP 8 T_NAME_* tokens

Like comment emulation, this is unconditional, as it is required
for core functionality.


# 739b4b4c 22-Jul-2020 Nikita Popov

Fix handling of unterminated comment with trailing newline

Fixes #688.


# 4abc5312 27-Jun-2020 Nikita Popov

Canonicalize to PHP 8 comment token format

The trailing newline is no longer part of the comment token.


# 602af906 09-Feb-2020 Nikita Popov

Add end line / file position / token position to comments


Revision tags: v4.3.0, v4.2.5
# 0a80b2d8 19-Oct-2019 Nikita Popov

Fix PHP 8 compatibility

This is a fix to preserve current behavior, but this should be
changed towards doing the same as PHP 8 does.


Revision tags: v4.2.4, v4.2.3
# 4fd36b99 12-Aug-2019 Nikita Popov

Fix compatibility with T_BAD_CHARACTER in PHP 7.4


# b9b45dd2 30-Jun-2019 Nikita Popov

Insert T_BAD_CHARACTER tokens for missing characters

The token stream should cover all characters in the original code,
insert a dummy token for missing illegal characters. We should

Insert T_BAD_CHARACTER tokens for missing characters

The token stream should cover all characters in the original code,
insert a dummy token for missing illegal characters. We should
really be doing this in token_get_all() as well.

show more ...


Revision tags: v4.2.2
# a167aa20 12-May-2019 Nikita Popov

Optimize attribue checks in the lexer


Revision tags: v4.2.1, v4.2.0, v4.1.1, v4.1.0, v4.0.4, v4.0.3, v4.0.2, v4.0.1, v4.0.0, v3.1.5, v4.0.0beta1, v3.1.4
# e0a20430 10-Jan-2018 Gabriel Caruso

[CS] Space before casting


# 5285df8f 13-Jan-2018 Nikita Popov

[CS] Use elseif instead of else if

Conflicts:
lib/PhpParser/TokenStream.php


Revision tags: v4.0.0alpha3, v3.1.3
# 94ca9a7a 13-Nov-2017 Nikita Popov

Use Tokens::class in lexer

Ref #441.


Revision tags: v4.0.0alpha2
# 68e9b91e 10-Nov-2017 Nikita Popov

Use fully-qualified names for global constant references


# 47c973b3 04-Nov-2017 Nikita Popov

Store start token position in comments


Revision tags: v3.1.2, v4.0.0alpha1
# a02990a3 29-Sep-2017 Nikita Popov

Remove PHP 5 substr() workaround

In PHP 7 it no longer returns false instead of '' in this case.


Revision tags: v3.1.1
# e2e99f26 18-Aug-2017 TomasVotruba

Add strict_types to lib code


# ec535ea1 13-Aug-2017 TomasVotruba

[cs] use PHP 5.4 short array, since PHP 7.0 is min version


Revision tags: v3.1.0, v3.0.6
# c28b8556 31-May-2017 Romain Neutron

Fix Lexer errorHandling when there is no tokens

I encounter an issue when no tokens exist. An error `Undefined offset -1` is triggered.


# b2c6497d 07-May-2017 Nikita Popov

Remove undefined variable hack

No longer necessary, as we don't support PHP 5 anymore.


# a32e3797 28-Apr-2017 Nikita Popov

Generate PHP 7 type annotations


Revision tags: v3.0.5
# 9857a545 11-Feb-2017 Matthew Brown

Remove unused variables (#357)


Revision tags: v3.0.4, v3.0.3
# 329e90c2 02-Feb-2017 Matthew Brown

Improve doc comments


# bfea338d 25-Jan-2017 Nikita Popov

Update doc comments after previous comment

Make some of the type annotations more accurate, and complete the
generated doc-comments to be complete (with description and
parameter ann

Update doc comments after previous comment

Make some of the type annotations more accurate, and complete the
generated doc-comments to be complete (with description and
parameter annotations.)

show more ...


1234