Re: [PHP-DEV] One-line heredoc for better syntax highlightning

2022-09-20 Thread Rowan Tommins
On 20/09/2022 19:29, Olle Härstedt wrote: Ya ok, this kills my idea. If heredoc was designed from start so that the delimiter would not be allowed at all in the text, then it would make sense. Weird that they did it like that, would be easy enough to come up with a unique delimiter so that it wou

Re: [PHP-DEV] One-line heredoc for better syntax highlightning

2022-09-20 Thread Olle Härstedt
2022-09-20 17:00 GMT+02:00, Sara Golemon : > On 19 September 2022 15:24:26 BST, "Olle Härstedt" < > olle.haerst...@limesurvey.org> wrote: >>Some editors can guess the domain-specific language inside heredoc, e.g. > if you do >> >>$query = <<>SELECT * FROM foo >>MySQL; >> >>It would be nice if this

Re: [PHP-DEV] One-line heredoc for better syntax highlightning

2022-09-20 Thread Olle Härstedt
2022-09-20 11:54 GMT+02:00, Rowan Tommins : > On 19/09/2022 20:10, Olle Härstedt wrote: >> More for users to learn? Don't you mean less, haha? This is an >> arbitrary limitation of heredoc, that we can remove (it might not be >> arbitrary from a yacc perspective, someone would have to explain that

Re: [PHP-DEV] One-line heredoc for better syntax highlightning

2022-09-20 Thread Sara Golemon
On 19 September 2022 15:24:26 BST, "Olle Härstedt" < olle.haerst...@limesurvey.org> wrote: >Some editors can guess the domain-specific language inside heredoc, e.g. if you do > >$query = <MySQL; > >It would be nice if this feature could be used in single lines as well: > >$query = <