diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-02-15 17:54:02 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-06-25 11:25:22 +0200 |
commit | 47cf18ba4ef9fb9df6c3affff8f2a3f5a3f930a8 (patch) | |
tree | 8f3750cf4d7003508bbeb411025d673cb391f415 /ext/libxml/libxml.c | |
parent | e12b9df05d238ec0f3cf47b28a49a4df1b1e3442 (diff) | |
download | php-git-47cf18ba4ef9fb9df6c3affff8f2a3f5a3f930a8.tar.gz |
Don't include trailing newline in comment token
Don't include a trailing newline in T_COMMENT tokens, instead leave
it for a following T_WHITESPACE token. The newline does not belong
to the comment logically, and this makes for an ugly special case,
as other tokens do not include trailing newlines.
Whitespace-sensitive tooling will want to either forward or backward
emulate this change.
Closes GH-5182.
Diffstat (limited to 'ext/libxml/libxml.c')
0 files changed, 0 insertions, 0 deletions