Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [pdt-dev] question about some highlighter region types

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-bounces@xxxxxxxxxxx <pdt-dev-bounces@xxxxxxxxxxx> de la part de Dawid Pakuła <zulus@xxxxxxxxx>
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]


-- 
Dawid Pakuła

From: thierry blind <thierryblind@xxxxxxx>
Reply: PDT Developers <pdt-dev@xxxxxxxxxxx>
Date: 13 April 2017 at 14:50:04
To: PDT Developers <pdt-dev@xxxxxxxxxxx>
Subject:  [pdt-dev] question about some highlighter region types

AND_WHITESPACE 

Back to the top