Add support for PHP 7's context sensitive lexer.
ClosedPublic

Authored by pprkut on Dec 17 2017, 6:37 PM.

Details

Summary

This adds support for the context sensitive lexer introduced
in PHP 7 according to https://wiki.php.net/rfc/context_sensitive_lexer.
The actual list of allowed tokens was taken from PHP's master
branch on github (from https://github.com/php/php-src/blob/master/Zend/zend_language_parser.y)

Diff Detail

Repository
R52 KDevelop: PHP Support
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
pprkut created this revision.Dec 17 2017, 6:37 PM
Restricted Application added a subscriber: kdevelop-devel. · View Herald TranscriptDec 17 2017, 6:37 PM
pprkut requested review of this revision.Dec 17 2017, 6:37 PM
mwolff accepted this revision.Dec 18 2017, 3:55 PM
mwolff added a subscriber: mwolff.

can't spot anything obviously wrong, and you added tests, so this lgtm - thanks!

This revision is now accepted and ready to land.Dec 18 2017, 3:55 PM
This revision was automatically updated to reflect the committed changes.