Skip to content

Reformat code breaks ApplyTo operator //= #191

Open
@gdelfino

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions