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

Problem with multi-line calls #34

Closed
hadley opened this issue Jul 31, 2020 · 1 comment
Closed

Problem with multi-line calls #34

hadley opened this issue Jul 31, 2020 · 1 comment
Labels
bug an unexpected problem or unintended behavior

Comments

@hadley
Copy link
Member

hadley commented Jul 31, 2020

cat(downlit::highlight("mean('\n\n')"))
#> <span class='nf'><a href='https://rdrr.io/r/base/mean.html'>mean</a></span>(<span class='s'>'
#> 
#> '</span>ean('
#> 
#> ')

Created on 2020-07-31 by the reprex package (v0.3.0)

@hadley
Copy link
Member Author

hadley commented Aug 26, 2020

The key problem is that highlight() expects tokens to occupy only a single line (i.e. line1 == line2). This will probably need a fundamentally different approach to solve.

@hadley hadley added the bug an unexpected problem or unintended behavior label Aug 26, 2020
@hadley hadley closed this as completed in 3254d19 Aug 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

1 participant