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

Wrong syntax highlight when the pipe occur in a closure #9562

Open
haoming-li-ling opened this issue Jun 29, 2023 · 1 comment
Open

Wrong syntax highlight when the pipe occur in a closure #9562

haoming-li-ling opened this issue Jun 29, 2023 · 1 comment
Labels
🐛 bug Something isn't working delight this feature would delight users syntax-highlighting Bugs or performance issues with the syntax highlighting logic

Comments

@haoming-li-ling
Copy link

haoming-li-ling commented Jun 29, 2023

Describe the bug

As in the title. When the pipe occurs in a closure with parameters, the pipes are highlighted incorrectly.

How to reproduce

Just type expressions like {|p| $p * 2 | print }.

Expected behavior

Highlight the pipes correctly.

Screenshots

image

Configuration

key value
version 0.82.0
branch
commit_hash
build_os macos-aarch64
build_target aarch64-apple-darwin
rust_version rustc 1.70.0 (90c541806 2023-05-31) (built from a source tarball)
cargo_version cargo 1.70.0 (ec8a8a0ca 2023-04-25)
build_time 2023-06-27 17:11:46 +00:00
build_rust_channel release
allocator standard
features dataframe, default, sqlite, trash, which, zip
installed_plugins

Additional context

No response

@haoming-li-ling haoming-li-ling added the needs-triage An issue that hasn't had any proper look label Jun 29, 2023
@amtoine
Copy link
Member

amtoine commented Jun 29, 2023

good catch @haoming-li-ling 👌

@amtoine amtoine added delight this feature would delight users syntax-highlighting Bugs or performance issues with the syntax highlighting logic 🐛 bug Something isn't working and removed needs-triage An issue that hasn't had any proper look labels Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working delight this feature would delight users syntax-highlighting Bugs or performance issues with the syntax highlighting logic
Projects
None yet
Development

No branches or pull requests

2 participants