You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Jayce (Jira)" <ji...@apache.org> on 2021/04/19 17:49:00 UTC
[jira] [Created] (NETBEANS-5604) Heredoc syntax: Invalid closing
identifier not shown by Netbeans
Jayce created NETBEANS-5604:
-------------------------------
Summary: Heredoc syntax: Invalid closing identifier not shown by Netbeans
Key: NETBEANS-5604
URL: https://issues.apache.org/jira/browse/NETBEANS-5604
Project: NetBeans
Issue Type: Improvement
Components: php - Editor
Reporter: Jayce
Assignee: Junichi Yamamoto
See here:
[https://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc]
Warning
It is very important to note that the line with the closing identifier must contain no other characters, except a semicolon (;). That means especially that the identifier *may not be indented*.
Netbeans ignore this completely.
Closing "EOT;" must always be on the left, no indentation
Invalid:
{code:java}
<?php
class foo {
public $bar = <<<EOT
bar
EOT;
}
// Identifier must not be indented
?>
{code}
Valid:
{code:java}
<?php
class foo {
public $bar = <<<EOT
bar
EOT;
}
?>
{code}
(Example from official php doc)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists