Great infos, thanks Dawid! It was a bit misused in our lexers.
Could we make it simple and have 2 separate cases in our lexers? - T_CONSTANT_ENCAPSED_STRING should be used for simple-quoted strings and nowdoc strings - T_ENCAPSED_AND_WHITESPACE should be used for double-quoted strings, backquoted strings and heredoc strings (in fact every php string that can be evaluated) Thierry. ________________________________ De : pdt-dev-boun...@eclipse.org <pdt-dev-boun...@eclipse.org> de la part de Dawid Pakuła <zu...@w3des.net> Envoyé : jeudi 13 avril 2017 14:23 À : PDT Developers Objet : Re: [pdt-dev] question about some highlighter region types Our token are same as in original PHP parser. See difference T_ENCAPSED_AND_WHITESPACE vs T_CONSTANT_ENCAPSED_STRING in php documentation [1] [1] - http://php.net/manual/en/tokens.php PHP: List of Parser Tokens - Manual<http://php.net/manual/en/tokens.php> php.net Various parts of the PHP language are represented internally by types like T_SR. PHP outputs identifiers like this one in parse errors, like "Parse error: unexpected ... -- Dawid Pakuła From: thierry blind <thierrybl...@msn.com><mailto:thierrybl...@msn.com> Reply: PDT Developers <pdt-dev@eclipse.org><mailto:pdt-dev@eclipse.org> Date: 13 April 2017 at 14:50:04 To: PDT Developers <pdt-dev@eclipse.org><mailto:pdt-dev@eclipse.org> Subject: [pdt-dev] question about some highlighter region types AND_WHITESPACE
_______________________________________________ pdt-dev mailing list pdt-dev@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/pdt-dev