File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -226,8 +226,12 @@ C# 11 also introduced a similar feature called `Raw String Literals <https://lea
226226`Swift <https://docs.swift.org/swift-book/documentation/the-swift-programming-language/stringsandcharacters/#Multiline-String-Literals >`__
227227also support triple-quoted string literals that automatically remove indentation.
228228
229+ PHP 7.3 introduced `Flexible Heredoc and Nowdoc Syntaxes <https://wiki.php.net/rfc/flexible_heredoc_nowdoc_syntaxes >`__
230+ Although it uses closing marker (e.g. ``<<<END ... END ``) instead of triple quote,
231+ it removes indent from text too.
232+
229233Java and Julia uses the least-indented line to determine the amount of indentation to be removed.
230- Swift and C# uses the indentation of the closing triple quotes, similar to this PEP .
234+ Swift, C#, and PHP uses the indentation of the closing triple quotes or closing marker .
231235
232236This PEP chose the Swift and C# approach because it is more simple and easy to explain.
233237
You can’t perform that action at this time.
0 commit comments