History log of /PHP-Parser/lib/PhpParser/Lexer.php (Results 76 – 80 of 80)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 46975107 18-Dec-2014 Nikita Popov

Support token position attributes in lexer

Also change endFilePos semantics to refer to the last character that
is *included* in the token, rather than one past the last character.
T

Support token position attributes in lexer

Also change endFilePos semantics to refer to the last character that
is *included* in the token, rather than one past the last character.
This ensures that all end* attributes have the same semantics.

show more ...


# d774dbc1 27-Nov-2014 Máximo Cuadros Ortiz

Add optional startFilePos and endFilePos attributes

The lexer can now optionally add startFilePos and endFilePos
attributes, which are offsets in to the lexed code string.

The e

Add optional startFilePos and endFilePos attributes

The lexer can now optionally add startFilePos and endFilePos
attributes, which are offsets in to the lexed code string.

The end offset currently points one past the last character of
the token - this is pending further discussion.

The attributes are not added by default and have to be enabled
using the new 'usedAttributes' lexer option:

$lexer = new Lexer([
'usedAttributes' => [
'comments', 'startLine', 'endLine',
'startFilePos', 'endFilePos'
]
]);

show more ...


Revision tags: v1.0.2, v1.0.1
# 99df8b86 30-Sep-2014 nikic

Support HHVM T_ONUMBER token


Revision tags: v1.0.0, v1.0.0beta2, v0.9.5, v1.0.0beta1
# 523e024b 12-Feb-2014 nikic

Fix a number of other typos


# f82862ec 06-Feb-2014 nikic

Port library to use namespaces, with BC for old names


1234