Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reformat code breaks ApplyTo operator //= #191

Open
gdelfino opened this issue Aug 27, 2021 · 0 comments
Open

Reformat code breaks ApplyTo operator //= #191

gdelfino opened this issue Aug 27, 2021 · 0 comments
Assignees

Comments

@gdelfino
Copy link

Describe the bug
Since WL 12.2 we can replace x with f[x] with the ApplyTo operator like this:

x //= f

when this code is reformatted, a space is inserted after the second slash effectively introducing a bug in the code:

x // = f

To Reproduce
Steps to reproduce the behaviour:

  1. Select code that includes the ApplyTo operator shortcut //=
  2. Select "Format Code" from the "Code" menu or press ALT-CTRL-L or

Expected behaviour
The sequence of three characters //= should be treated as a single character, never to be separated.

Please also provide:

  • OS: Windows 10
  • IntelliJ IDEA 2021.2.1
  • Wolfram Plugin Version 2021.2-beta-1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants