You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When coconut encounters a string literal containing either an unescaped paragraph separator (U+2029) or a line separator (U+2028), these characters are replaced by a newline. There could be other codepoints with this problem, as i haven't tested many. I have tested this behaviour with python 3.11 and coconut 3.0.4 on python 3.11.
Additionally this causes a CoconutSyntaxError: linebreak in non-multi-line string if the string is not a multi-line string.
I think this should be fixed by the same fix as for #818. so it should working on coconut-develop right now (pip install -U coconut-develop to get the fix).
See Coconut's
[documentation](http://coconut.readthedocs.io/en/develop/DOCS.html) for
more information on all of the features listed below.
Language changes:
* #814: Changes to statement lambda scoping rules, including capturing
names introduced in the surrounding expression.
* #618: Changes to handling of pattern-matching function defaults
including support for e.g. `match def f(x, y=x) = (x, y)`.
* #809: New array concatenation implicit partials (e.g. `[. ; a]`).
* #823: New `(x := .)` implicit partial syntax (only available in
pipes).
* #807: New `lift_apart` built-in combinator.
* #813: New `(if)` operator function.
* #826 (thanks @JayXon!): Better universalization and `fmap` support for
`bytes` and `bytearray`.
* #816: Support for `xarray` to match existing `numpy`/`pandas` support.
* #817: New `to` argument to `all_equal`.
* #821 (thanks @GolfingSuccess!): Expanded implicit function application
syntax to support string literal methods.
Compiler changes:
* #799: `coconut-run` and `coconut --run` now work on packages rather
than just files.
* #812: Better formatting of Coconut exceptions.
Bugfixes:
* #810: Fixed an issue compiling certain syntax constructs in the
Coconut Jupyter kernel.
* #818, #825 (thanks @kg583, @dokutan!): Fixed parsing of different
Unicode line break characters.
* #822 (thanks @JayXon!): Fixed parsing of Unicode backward pipe
operators.
* #819, #820 (thanks @kg583!): Fixed some incompatibilities between
Python and Coconut syntax.
When coconut encounters a string literal containing either an unescaped paragraph separator (U+2029) or a line separator (U+2028), these characters are replaced by a newline. There could be other codepoints with this problem, as i haven't tested many. I have tested this behaviour with python 3.11 and coconut 3.0.4 on python 3.11.
Additionally this causes a
CoconutSyntaxError: linebreak in non-multi-line string
if the string is not a multi-line string.To reproduce:
The text was updated successfully, but these errors were encountered: