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

Text blocks have color after first line

Open machty opened this issue 11 years ago • 7 comments

e.g.:

img

Weirdly enough though, if i add a line above this block, it will correctly display:

img

machty avatar Apr 16 '13 23:04 machty

Reproduced and acknowledged.

heartsentwined avatar Apr 16 '13 23:04 heartsentwined

Fixed with a better algorithm of matching text and comment blocks. the old one tries to match it in one regex; the new one is arguably more natural, and defines a region with starting and ending markers.

heartsentwined avatar Apr 17 '13 01:04 heartsentwined

This might belong in its own issue, but this should also show up as all grey.

img

edit: better image

machty avatar Apr 17 '13 15:04 machty

Ah, I completely missed this syntax.

heartsentwined avatar Apr 17 '13 16:04 heartsentwined

@machty is the following allowed?

tag-one: tag-two foo foo foo
  bar bar bar

What is bar bar bar? Is it treated as part of the text starting from foo foo foo, or a general newline? (bar handlebars helper called with args bar bar)

heartsentwined avatar Apr 22 '13 01:04 heartsentwined

Assuming tag-one and tag-two are placeholders for known HTML5 elements, this would translate to

<tag-one>
  <tag-two>
    foo foo foo bar bar bar
  </tag-two>
</tag-one>

It's weird, but allowed. It'd be really crazy/awesome if you could get auto indentation to work such that it'd encourage you to write like:

tag-one: tag-two foo foo foo
                 bar bar bar

machty avatar Apr 22 '13 02:04 machty

Alright, thanks for the clarification

heartsentwined avatar Apr 22 '13 02:04 heartsentwined