Skip to content

backslash in text creates error condition #157

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

Closed
hakling opened this issue Nov 19, 2021 · 8 comments
Closed

backslash in text creates error condition #157

hakling opened this issue Nov 19, 2021 · 8 comments
Labels
bug Something isn't working

Comments

@hakling
Copy link

hakling commented Nov 19, 2021

Describe the bug

Text which includes a backslashed punctuation character creates an error conditions. e.g. . [, etc.

Steps to reproduce

  1. enter any line with text such as "this [word]" - no problem
  2. put a backslash in front of [ or .
  3. results in "Error on text "This [word]"

Expected behavior

Just display the backslashed character.

Emacs functionality

Backslashed text is displayed properly, No error is raised.

Minimal init.lua

No changes made to default initl.lua

Screenshots and recordings

No response

OS / Distro

Ubuntu 21.04 5.11.0-40-generic #44-Ubuntu SMP

Neovim version/commit

NVIM v0.6.0-dev+575-g2ef9d2a66

Additional context

This may represent a known limitation, but I've not found it documented anywhere. Issue arose when taking notes on coding.

@hakling hakling added the bug Something isn't working label Nov 19, 2021
@kristijanhusak
Copy link
Member

This is coming from treesitter parser. I'll need to check what's happening there.

@hakling
Copy link
Author

hakling commented Nov 19, 2021

Seems the issue may be a bit broader. The following line results in the same error:
'A random line with $ in it'
The issue seems to be the $ surrounded by blanks. If the $ is followed by text it is okay. e.g. $word is treated properly

@hakling
Copy link
Author

hakling commented Nov 20, 2021

And, if the last line in a fold ends in a period, it seems not be included in the fold.

@kristijanhusak
Copy link
Member

And, if the last line in a fold ends in a period, it seems not be included in the fold.

Can you give an example here? I can't reproduce this. Other things are reproduced.

@hakling
Copy link
Author

hakling commented Nov 20, 2021 via email

@kristijanhusak
Copy link
Member

I'm not seing an image, probably because you wrote from in-mail. Make sure to recalculate folds with zx before reporting any potential issues, since Vim/Neovim folding can be a bit confused at first.

@hakling
Copy link
Author

hakling commented Nov 21, 2021 via email

@kristijanhusak
Copy link
Member

kristijanhusak commented Apr 3, 2022

These should be fixed with the latest master. If the issue persist, let me know and I'll reopen the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants