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

Indenting rules don't like multi-line strings #77

Closed
caneff opened this issue Dec 9, 2013 · 2 comments
Closed

Indenting rules don't like multi-line strings #77

caneff opened this issue Dec 9, 2013 · 2 comments
Labels

Comments

@caneff
Copy link

caneff commented Dec 9, 2013

Pretty simple example here:

a <- ("multi
     line
     string")

If you go to the next line the cursor lines itself up with in the same column as s in string. Note that you need the parentheses around the string. Otherwise if you leave them out, it doesn't indent on the line after multi (which is fine and how other languages seem to behave).

Also if I have

a <- ("multi
     line
          indented
     string")

And indent with =ap, the indented line gets brought back to the same indent level as everything else. Text in strings should be left alone when indenting.

@jalvesaq
Copy link

jalvesaq commented Dec 9, 2013

Sorry, but I'm not going to fix bugs in the indent/r.vim script because it's too difficult to fix bugs there without breaking anything else. Unfortunately, we have to wait until someone either fixes the bug or completely rewrites the indent/r.vim script.

@jalvesaq
Copy link

jalvesaq commented Apr 8, 2015

I deleted from the Vim-R-plugin the files that are already distributed as official Vim runtime files. Now, there is a new repository with these files: https://github.com/jalvesaq/R-Vim-runtime

Since the official runtime files are no longer in this repository, I'm closing this bug. This bug is already described in the Known bugs section of the README.md, and new bugs should be reported in the new repository.

@jalvesaq jalvesaq closed this as completed Apr 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants