vim-cpp icon indicating copy to clipboard operation
vim-cpp copied to clipboard

Add syntax folding to 'raw string' region

Open AriSweedler opened this issue 4 years ago • 4 comments

I have testcases that need JSON as input. Instead of making a file for each one, I inline the JSON as a raw string. It takes up too much screen real estate. I do this on my machine, I think other people might appreciate it, too.

AriSweedler avatar Sep 01 '21 06:09 AriSweedler

I would like to bump this

AriSweedler avatar Sep 14 '21 17:09 AriSweedler

Hello?

AriSweedler avatar Oct 10 '21 06:10 AriSweedler

Sorry delay. Could you please provide error case?

mattn avatar May 23 '22 05:05 mattn

It is not an error case. The syntax region around the raw string literal has been written successfully. This PR is a feature request. I have this on my machine, and I think that it is a much saner default than currently exists.

I want a raw string region like this to add a layer of folding

auto my_string = R"delim(
Hello
World
)delim";

AriSweedler avatar May 23 '22 07:05 AriSweedler